Compare commits

..
2 Commits
Author SHA1 Message Date
Martin Robertz 0242be58a9 Merge pull request #24 from GTNewHorizons/hotfix-infinity-booster
Fix infinity booster not working anymore
2022-09-25 10:51:00 +02:00
Raven Szewczyk c0afb9eb8f Fix infinity booster not working anymore
The isBoosterInstalled() function was using the wrong slot index after the shift to fix it getting removed from the WCT easily
2022-09-25 09:45:52 +01:00
@@ -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;