mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-10-26 14:24:22 +00:00
Remove tile ticking shim
This commit is contained in:
1 parent
298d46399f
commit
01ca175951
1 file changed
+2
-16
@@ -65,22 +65,8 @@ public class TileMod extends TileEntity implements ITickable {
|
||||
|
||||
@Override
|
||||
public final void update() {
|
||||
if (!isInvalid() && worldObj.isBlockLoaded(getPos(), false)) {
|
||||
if (!worldObj.isRemote)
|
||||
updateEntity();
|
||||
else {
|
||||
try {
|
||||
updateEntity();
|
||||
} catch (NullPointerException e) { // todo 1.8 remove this abhorration after I figure out what's going on.
|
||||
e.printStackTrace();
|
||||
FMLLog.severe("[Botania]: CLIENT TICK FAILED");
|
||||
FMLLog.severe("[Botania]: World: %s, Pos: %s, TE: %s", worldObj, pos, this);
|
||||
if (this instanceof TileSpecialFlower) {
|
||||
TileSpecialFlower spec = ((TileSpecialFlower) this);
|
||||
FMLLog.severe("[Botania]: SUBTILE: %s", spec.getSubTile().getUnlocalizedName());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!isInvalid() && worldObj.isBlockLoaded(getPos())) {
|
||||
updateEntity();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user