mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-13 14:04:05 +01:00
oops, double particles
This commit is contained in:
parent
25712f8b39
commit
b070adc3e3
@ -38,8 +38,7 @@ public class MovedDefaultDispenseItemBehaviour implements IMovedDispenseItemBeha
|
|||||||
facingVec.normalize();
|
facingVec.normalize();
|
||||||
|
|
||||||
Direction closestToFacing = getClosestFacingDirection(facingVec);
|
Direction closestToFacing = getClosestFacingDirection(facingVec);
|
||||||
BlockPos interactAt = pos.offset(closestToFacing);
|
IInventory iinventory = HopperTileEntity.getInventoryAtPosition(context.world, pos.offset(closestToFacing));
|
||||||
IInventory iinventory = HopperTileEntity.getInventoryAtPosition(context.world, interactAt);
|
|
||||||
if (iinventory == null) {
|
if (iinventory == null) {
|
||||||
this.playDispenseSound(context.world, pos);
|
this.playDispenseSound(context.world, pos);
|
||||||
this.spawnDispenseParticles(context.world, pos, closestToFacing);
|
this.spawnDispenseParticles(context.world, pos, closestToFacing);
|
||||||
@ -72,7 +71,6 @@ public class MovedDefaultDispenseItemBehaviour implements IMovedDispenseItemBeha
|
|||||||
*/
|
*/
|
||||||
protected void spawnDispenseParticles(IWorld world, BlockPos pos, Vec3d facing) {
|
protected void spawnDispenseParticles(IWorld world, BlockPos pos, Vec3d facing) {
|
||||||
spawnDispenseParticles(world, pos, getClosestFacingDirection(facing));
|
spawnDispenseParticles(world, pos, getClosestFacingDirection(facing));
|
||||||
world.playEvent(2000, pos, getClosestFacingDirection(facing).getIndex());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void spawnDispenseParticles(IWorld world, BlockPos pos, Direction direction) {
|
protected void spawnDispenseParticles(IWorld world, BlockPos pos, Direction direction) {
|
||||||
|
Loading…
Reference in New Issue
Block a user