Fixed disguisable blocks with a full shape not updating water properly
@@ -39,9 +39,11 @@ public class DisguisableBlockEntity extends CustomizableBlockEntity {
SecurityCraft.channel.send(PacketDistributor.ALL.noArg(), new RefreshDisguisableModel(worldPosition, true, stack, toggled));
- if (state.hasProperty(BlockStateProperties.WATERLOGGED) && state.getValue(BlockStateProperties.WATERLOGGED))
+ if (state.hasProperty(BlockStateProperties.WATERLOGGED) && state.getValue(BlockStateProperties.WATERLOGGED)) {
+ level.scheduleTick(worldPosition, Fluids.WATER, Fluids.WATER.getTickDelay(level));
level.updateNeighborsAt(worldPosition, state.getBlock());
}
+ }
else
ClientHandler.putDisguisedBeRenderer(this, stack);
}
@@ -57,8 +59,10 @@ public class DisguisableBlockEntity extends CustomizableBlockEntity {
SecurityCraft.channel.send(PacketDistributor.ALL.noArg(), new RefreshDisguisableModel(worldPosition, false, stack, toggled));
- if (state.hasProperty(BlockStateProperties.WATERLOGGED) && state.getValue(BlockStateProperties.WATERLOGGED))
+ if (state.hasProperty(BlockStateProperties.WATERLOGGED) && state.getValue(BlockStateProperties.WATERLOGGED)) {
level.scheduleTick(worldPosition, Fluids.WATER, Fluids.WATER.getTickDelay(level));
+ level.updateNeighborsAt(worldPosition, state.getBlock());
+ }
}
else
ClientHandler.DISGUISED_BLOCK_RENDER_DELEGATE.removeDelegateOf(this);
