Binnie's Mods

Binnie's Mods

23M Downloads

`TileEntityMachine` sometimes fires IC2's `EnergyTileUnloadEvent` from client side

3TUSK opened this issue ยท 0 comments

commented

Binnie 2.5.0.109 and IC2 2.8.35-ex112 are present. Sometimes I can observe these in my console output:

[13:55:45] [main/WARN] [ic2.EnergyNet]: EnergyTileUnloadEvent: posted for binnie.core.machines.TileEntityMachine@15028424 (dim 0: -139/64/363) client-side, aborting
[13:55:45] [main/WARN] [ic2.EnergyNet]: EnergyTileUnloadEvent: posted for binnie.core.machines.TileEntityMachine@17a660e4 (dim 0: -140/64/363) client-side, aborting

It looks like that there should be a !world.isRemote check:

private void addToEnergyNet() {
if (this.getMachine().getWorld() == null) {
return;
}
if (Mods.IC2.active()) {
this.do_addToEnergyNet();
}
}
private void removeFromEnergyNet() {
if (this.getMachine().getWorld() == null) {
return;
}
if (Mods.IC2.active()) {
this.do_removeFromEnergyNet();
}
}