fix references to worldObj

This commit is contained in:
Progwml6 committed 2014-01-01 14:59:11 -05:00
1 parent 2cb0bb34fb
commit 48be78c6a8
27 files changed
+162 -163

No files matched your search

@@ -58,10 +58,10 @@ public class ToolStationLogic extends InventoryLogic implements ISidedInventory
public void onInventoryChanged ()
{
buildTool(toolName);
if (this.worldObj != null)
if (this.getWorld() != null)
{
this.blockMetadata = this.worldObj.getBlockMetadata(this.xCoord, this.yCoord, this.zCoord);
this.worldObj.markTileEntityChunkModified(this.xCoord, this.yCoord, this.zCoord, this);
this.blockMetadata = this.getWorld().getBlockMetadata(this.xCoord, this.yCoord, this.zCoord);
this.getWorld().markTileEntityChunkModified(this.xCoord, this.yCoord, this.zCoord, this);
}
}