Fix unsafe cast to ServerWorld

Fixes #7
This commit is contained in:
tibs 2022-12-30 15:28:53 -05:00
parent 7fab2ce2a9
commit 558df23f24
Signed by untrusted user who does not match committer: tibs
GPG key ID: 047833989F50F88F

View file

@ -91,7 +91,7 @@ public class WaterCauldronBlockEntity extends BlockEntity {
if (world != null) {
if (world.isClient()) {
CauldronDyeing.rebuildBlock(pos);
} else {
} else if (world instanceof ServerWorld) {
((ServerWorld) world).getChunkManager().markForUpdate(pos);
}
super.markDirty();