Skip to content

Commit

Permalink
Prevent Universal Wireless crafting terminal void items. (#254)
Browse files Browse the repository at this point in the history
Co-authored-by: Maya <[email protected]>
  • Loading branch information
lordIcocain and serenibyss authored Dec 31, 2024
1 parent b663d87 commit 319dcc9
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.CraftingManager;

import com.glodblock.github.inventory.ItemBiggerAppEngInventory;
import com.glodblock.github.inventory.item.IWirelessCraftTerminal;
import com.glodblock.github.inventory.item.IWirelessTerminal;

Expand Down Expand Up @@ -36,7 +37,16 @@ public ContainerCraftingWireless(final InventoryPlayer ip, final IWirelessTermin
crafting,
x + y * 3,
37 + x * 18,
-72 + y * 18));
-72 + y * 18) {

@Override
public void onSlotChanged() {
if (this.inventory instanceof ItemBiggerAppEngInventory i) {
i.markDirty();
}
super.onSlotChanged();
}
});
}
}
AppEngInternalInventory output = new AppEngInternalInventory(this, 1);
Expand Down

0 comments on commit 319dcc9

Please sign in to comment.