From 2951127633c25e44b8d7955148da9986b2f11114 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 16 Nov 2020 22:53:15 +0100 Subject: [PATCH] fixed the field creator being unable to break snow Closes #153 --- .../ellpeck/naturesaura/blocks/tiles/TileEntityFieldCreator.java | 1 + 1 file changed, 1 insertion(+) 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 a7508860..a2c4a143 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityFieldCreator.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityFieldCreator.java @@ -118,6 +118,7 @@ public class TileEntityFieldCreator extends TileEntityImpl implements ITickableT FakePlayer fake = FakePlayerFactory.getMinecraft((ServerWorld) this.world); if (!MinecraftForge.EVENT_BUS.post(new BlockEvent.BreakEvent(this.world, pos, state, fake))) { List drops = state.getDrops(new LootContext.Builder((ServerWorld) this.world) + .withParameter(LootParameters.THIS_ENTITY, fake) .withParameter(LootParameters.field_237457_g_, Vector3d.copyCentered(pos)) .withParameter(LootParameters.BLOCK_STATE, state) .withParameter(LootParameters.TOOL, tool.isEmpty() ? new ItemStack(Items.DIAMOND_PICKAXE) : tool)