Fix worktable not showing owner gui tab

This commit is contained in:
mezz committed 2015-11-08 23:47:33 -08:00
1 parent fc69e25ea3
commit e73e18a3c7
1 file changed
+5 -2
@@ -60,7 +60,6 @@ public class ContainerWorktable extends ContainerTile<TileWorktable> implements
// Update crafting matrix with current contents of tileentity.
updateMatrix();
updateRecipe();
}
@Override
@@ -76,6 +75,11 @@ public class ContainerWorktable extends ContainerTile<TileWorktable> implements
sendPacketToCrafters(packet);
}
@Override
public void onCraftMatrixChanged(IInventory iinventory) {
updateRecipe();
}
@Override
public void onCraftMatrixChanged(IInventory iinventory, int slot) {
if (slot >= craftMatrix.getSizeInventory()) {
@@ -87,7 +91,6 @@ public class ContainerWorktable extends ContainerTile<TileWorktable> implements
if (!ItemStackUtil.isIdenticalItem(stack, currentStack)) {
craftMatrix.setInventorySlotContents(slot, stack);
updateRecipe();
}
}