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

@@ -22,14 +22,14 @@ public class CraftingStationContainer extends Container
public InventoryCrafting craftMatrix;// = new InventoryCrafting(this, 3, 3);
public IInventory craftResult;// = new InventoryCraftResult();
private CraftingStationLogic logic;
private World worldObj;
private World field_145850_b;
private int posX;
private int posY;
private int posZ;
public CraftingStationContainer(InventoryPlayer inventorplayer, CraftingStationLogic logic, int x, int y, int z)
{
this.worldObj = logic.worldObj;
this.field_145850_b = logic.getWorld();
this.posX = x;
this.posY = y;
this.posZ = z;
@@ -94,7 +94,7 @@ public class CraftingStationContainer extends Container
if (tool != null)
this.craftResult.setInventorySlotContents(0, tool);
else
this.craftResult.setInventorySlotContents(0, CraftingManager.getInstance().findMatchingRecipe(this.craftMatrix, this.worldObj));
this.craftResult.setInventorySlotContents(0, CraftingManager.getInstance().findMatchingRecipe(this.craftMatrix, this.field_145850_b));
}
public ItemStack modifyTool ()
@@ -135,7 +135,7 @@ public class CraftingStationContainer extends Container
{
super.onContainerClosed(par1EntityPlayer);
if (!this.worldObj.isRemote)
if (!this.field_145850_b.isRemote)
{
for (int i = 0; i < 9; ++i)
{