From ea92a1b75af3e530b3475c09b6567760c4fa5e41 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 18 Oct 2020 15:30:05 +0200 Subject: [PATCH] fixed the fix I just fixed --- .../naturesaura/blocks/tiles/TileEntityFieldCreator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityFieldCreator.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityFieldCreator.java index e9daaceb..90869749 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityFieldCreator.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityFieldCreator.java @@ -120,12 +120,12 @@ public class TileEntityFieldCreator extends TileEntityImpl implements ITickableT List drops = state.getDrops(new LootContext.Builder((ServerWorld) this.world) .withParameter(LootParameters.field_237457_g_, Vector3d.copyCentered(pos)) .withParameter(LootParameters.BLOCK_STATE, state) - .withParameter(LootParameters.TOOL, tool == null ? new ItemStack(Items.DIAMOND_PICKAXE) : tool) + .withParameter(LootParameters.TOOL, tool.isEmpty() ? new ItemStack(Items.DIAMOND_PICKAXE) : tool) .withNullableParameter(LootParameters.BLOCK_ENTITY, this.world.getTileEntity(pos))); this.world.destroyBlock(pos, false); for (ItemStack stack : drops) Block.spawnAsEntity(this.world, pos, stack); - chunk.drainAura(spot, tool != null ? 300 : 100); + chunk.drainAura(spot, tool.isEmpty() ? 300 : 100); this.sendParticles(); } }