From 4b28d1f316d55132ae1232027c6dc51a881bf38e Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Wed, 1 Nov 2023 17:41:31 +0000 Subject: [PATCH] Change HempBlock to update neighbours when growing top block (#5796) Should fix issues with AE2's Annihilation Plane --- .../immersiveengineering/common/blocks/plant/HempBlock.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/blusunrize/immersiveengineering/common/blocks/plant/HempBlock.java b/src/main/java/blusunrize/immersiveengineering/common/blocks/plant/HempBlock.java index 87ad9ab0f9..093cfd47b3 100644 --- a/src/main/java/blusunrize/immersiveengineering/common/blocks/plant/HempBlock.java +++ b/src/main/java/blusunrize/immersiveengineering/common/blocks/plant/HempBlock.java @@ -144,7 +144,7 @@ else if(canGrowTop) { BlockPos above = pos.above(); BlockState aboveState = this.getStateForAge(getMaxAge()).setValue(TOP, true); - world.setBlock(above, aboveState, 2); + world.setBlockAndUpdate(above, aboveState); net.minecraftforge.common.ForgeHooks.onCropsGrowPost(world, above, aboveState); } } @@ -172,6 +172,6 @@ public void growCrops(Level world, BlockPos pos, BlockState state) world.setBlock(pos, this.getStateForAge(newAge), 2); if(growTop) - world.setBlock(pos.above(), this.getStateForAge(getMaxAge()).setValue(TOP, true), 2); + world.setBlockAndUpdate(pos.above(), this.getStateForAge(getMaxAge()).setValue(TOP, true)); } } \ No newline at end of file