mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 04:22:32 +00:00
Fix worktable not showing owner gui tab
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user