Don't update neighbors in markDirty, it's not needed.

This commit is contained in:
raoulvdberge
2018-10-31 20:39:59 +01:00
parent 982d2562f9
commit 5451fd78de

View File

@@ -116,6 +116,14 @@ public abstract class TileBase extends TileEntity {
return null;
}
// @Volatile: Copied with some changes from the super method (avoid sending neighbor updates, it's not needed)
@Override
public void markDirty() {
if (world != null) {
world.markChunkDirty(pos, this);
}
}
@Override
public boolean equals(Object o) {
return o instanceof TileBase && ((TileBase) o).getPos().equals(pos) && ((TileBase) o).world.provider.getDimension() == world.provider.getDimension();