Fixed slime pustule not triggering a redstone update above it

This commit is contained in:
Sollace 2024-04-05 15:07:21 +01:00
parent 56e91629b1
commit d6e1a6c3b8
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -199,7 +199,7 @@ public class SlimePustuleBlock extends Block {
public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) { public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) {
super.onStateReplaced(state, world, pos, newState, moved); super.onStateReplaced(state, world, pos, newState, moved);
if (state.isOf(this) && newState.isOf(this) && state.get(POWERED) != newState.get(POWERED)) { if (state.isOf(this) && newState.isOf(this) && state.get(POWERED) != newState.get(POWERED)) {
world.updateNeighbor(pos.up(), this, pos); world.updateNeighborsAlways(pos.up(), this);
} }
} }