From d89807fad95ce9a1876693050fdcfcdc8f66c066 Mon Sep 17 00:00:00 2001 From: grimmauld Date: Sun, 6 Sep 2020 09:35:49 +0200 Subject: [PATCH] Fix wand of symmetry not applying fortune or silk touch --- .../content/curiosities/symmetry/SymmetryWandItem.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/simibubi/create/content/curiosities/symmetry/SymmetryWandItem.java b/src/main/java/com/simibubi/create/content/curiosities/symmetry/SymmetryWandItem.java index 5ee1ba62a..9c1121f73 100644 --- a/src/main/java/com/simibubi/create/content/curiosities/symmetry/SymmetryWandItem.java +++ b/src/main/java/com/simibubi/create/content/curiosities/symmetry/SymmetryWandItem.java @@ -273,9 +273,7 @@ public class SymmetryWandItem extends Item { continue; BlockState blockstate = world.getBlockState(position); - if (blockstate.isAir(world, position)) { - continue; - } else { + if (!blockstate.isAir(world, position)) { targets.add(position); world.playEvent(2001, position, Block.getStateId(blockstate)); world.setBlockState(position, air, 3); @@ -286,7 +284,7 @@ public class SymmetryWandItem extends Item { player.getHeldItemMainhand() .onBlockDestroyed(world, blockstate, position, player); TileEntity tileentity = blockstate.hasTileEntity() ? world.getTileEntity(position) : null; - Block.spawnDrops(blockstate, world, pos, tileentity); + Block.spawnDrops(blockstate, world, pos, tileentity, player, player.getHeldItemMainhand()); // Add fortune, silk touch and other loot modifiers } } }