Merge pull request #24 from GTNewHorizons/hotfix-infinity-booster

Fix infinity booster not working anymore
This commit is contained in:
Martin Robertz authored and GitHub committed 2022-09-25 10:51:00 +02:00
commit 0242be58a9
1 file changed
+4 -6
@@ -822,16 +822,14 @@ public class ContainerWirelessCraftingTerminal extends AEBaseContainer
}
public boolean isBoosterInstalled() {
Slot slot = getSlotFromInventory(this.boosterInventory, BOOSTER_INDEX);
Slot slot = getSlotFromInventory(this.boosterInventory, 0);
if (slot == null) {
return false;
}
boolean hasStack =
getSlotFromInventory(this.boosterInventory, BOOSTER_INDEX).getHasStack();
boolean hasStack = getSlotFromInventory(this.boosterInventory, 0).getHasStack();
if (hasStack) {
Item boosterSlotContents = getSlotFromInventory(this.boosterInventory, BOOSTER_INDEX)
.getStack()
.getItem();
Item boosterSlotContents =
getSlotFromInventory(this.boosterInventory, 0).getStack().getItem();
return boosterSlotContents instanceof ItemInfinityBooster;
}
return false;