Don't update neighbors in markDirty, it's not needed.
This commit is contained in:
@@ -116,6 +116,14 @@ public abstract class TileBase extends TileEntity {
|
|||||||
return null;
|
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
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
return o instanceof TileBase && ((TileBase) o).getPos().equals(pos) && ((TileBase) o).world.provider.getDimension() == world.provider.getDimension();
|
return o instanceof TileBase && ((TileBase) o).getPos().equals(pos) && ((TileBase) o).world.provider.getDimension() == world.provider.getDimension();
|
||||||
|
Reference in New Issue
Block a user