mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
removed excessive markDirty operations from hadron and RBMK
This commit is contained in:
parent
6441aee9d3
commit
35201ed420
@ -30,7 +30,7 @@ public class TileEntityHadronPower extends TileEntity implements IEnergyUser {
|
|||||||
@Override
|
@Override
|
||||||
public void setPower(long i) {
|
public void setPower(long i) {
|
||||||
power = i;
|
power = i;
|
||||||
this.markDirty();
|
this.worldObj.markTileEntityChunkModified(this.xCoord, this.yCoord, this.zCoord, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -213,6 +213,14 @@ public abstract class TileEntityRBMKBase extends TileEntity implements INBTPacke
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void markDirty() {
|
||||||
|
|
||||||
|
if(this.worldObj != null) {
|
||||||
|
this.worldObj.markTileEntityChunkModified(this.xCoord, this.yCoord, this.zCoord, this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected void coolPassively() {
|
protected void coolPassively() {
|
||||||
|
|
||||||
if(ModEventHandler.fire > 0) {
|
if(ModEventHandler.fire > 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user