From 91b398c12136ffc0d03acaf1a3be678d21b39de4 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 11 Jul 2016 17:24:26 +0200 Subject: [PATCH] Play the particles on the client when breaking the block directly with a drill --- .../de/ellpeck/actuallyadditions/mod/util/WorldUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/util/WorldUtil.java b/src/main/java/de/ellpeck/actuallyadditions/mod/util/WorldUtil.java index d0d11743e..68e0bbad4 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/util/WorldUtil.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/util/WorldUtil.java @@ -357,7 +357,7 @@ public final class WorldUtil{ } if(!world.isRemote){ - world.playEvent(2001, pos, Block.getStateId(state)); + world.playEvent(player, 2001, pos, Block.getStateId(state)); if(player instanceof EntityPlayerMP){ ((EntityPlayerMP)player).connection.sendPacket(new SPacketBlockChange(world, pos)); @@ -385,7 +385,7 @@ public final class WorldUtil{ block.dropXpOnBlockBreak(world, pos, xp); } - world.playEvent(2001, pos, Block.getStateId(state)); + world.playEvent(player, 2001, pos, Block.getStateId(state)); playerMp.connection.sendPacket(new SPacketBlockChange(world, pos)); return true; } @@ -396,6 +396,7 @@ public final class WorldUtil{ } stack.onBlockDestroyed(world, state, pos, player); + world.playEvent(2001, pos, Block.getStateId(state)); if(stack.stackSize <= 0 && stack == player.getHeldItemMainhand()){ ForgeEventFactory.onPlayerDestroyItem(player, stack, EnumHand.MAIN_HAND);