From b070adc3e3923a9ed384c6560d67a57bf3dc8357 Mon Sep 17 00:00:00 2001 From: grimmauld Date: Wed, 2 Sep 2020 10:49:05 +0200 Subject: [PATCH] oops, double particles --- .../actors/dispenser/MovedDefaultDispenseItemBehaviour.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/contraptions/components/actors/dispenser/MovedDefaultDispenseItemBehaviour.java b/src/main/java/com/simibubi/create/content/contraptions/components/actors/dispenser/MovedDefaultDispenseItemBehaviour.java index 5385553e2..6692f44cf 100644 --- a/src/main/java/com/simibubi/create/content/contraptions/components/actors/dispenser/MovedDefaultDispenseItemBehaviour.java +++ b/src/main/java/com/simibubi/create/content/contraptions/components/actors/dispenser/MovedDefaultDispenseItemBehaviour.java @@ -38,8 +38,7 @@ public class MovedDefaultDispenseItemBehaviour implements IMovedDispenseItemBeha facingVec.normalize(); Direction closestToFacing = getClosestFacingDirection(facingVec); - BlockPos interactAt = pos.offset(closestToFacing); - IInventory iinventory = HopperTileEntity.getInventoryAtPosition(context.world, interactAt); + IInventory iinventory = HopperTileEntity.getInventoryAtPosition(context.world, pos.offset(closestToFacing)); if (iinventory == null) { this.playDispenseSound(context.world, pos); this.spawnDispenseParticles(context.world, pos, closestToFacing); @@ -72,7 +71,6 @@ public class MovedDefaultDispenseItemBehaviour implements IMovedDispenseItemBeha */ protected void spawnDispenseParticles(IWorld world, BlockPos pos, Vec3d facing) { spawnDispenseParticles(world, pos, getClosestFacingDirection(facing)); - world.playEvent(2000, pos, getClosestFacingDirection(facing).getIndex()); } protected void spawnDispenseParticles(IWorld world, BlockPos pos, Direction direction) {