cherry pick fix tooltip problem

This commit is contained in:
vfyjxf authored and Martin Robertz committed 2022-02-07 19:03:43 +01:00
1 parent ed66abebd5
commit 15a6344ba2
20 files changed
+323 -258

No files matched your search

@@ -28,11 +28,9 @@ public class ContainerCraftingConfirm extends ContainerCraftConfirm {
@Override
public void onContainerClosed(EntityPlayer par1EntityPlayer) {
super.onContainerClosed(par1EntityPlayer);
if(Platform.isServer()) {
if (tile != null && !hasWorkCommitted) {
this.tile.getPatternInventory().setInventorySlotContents(patternIndex, null);
this.tile.updateCraftingList();
}
if (Platform.isServer() && tile != null && !hasWorkCommitted) {
this.tile.getPatternInventory().setInventorySlotContents(patternIndex, null);
this.tile.updateCraftingList();
}
}