Skip to content

Commit

Permalink
Change HempBlock to update neighbours when growing top block (#5796)
Browse files Browse the repository at this point in the history
Should fix issues with AE2's Annihilation Plane
  • Loading branch information
jrtc27 authored Nov 1, 2023
1 parent 9af90d4 commit 4b28d1f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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));
}
}

0 comments on commit 4b28d1f

Please sign in to comment.