mirror of
https://github.com/GTNewHorizons/WirelessCraftingTerminal.git
synced 2026-11-26 06:42:55 +00:00
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
This commit is contained in:
1 parent
07fd1eef26
commit
c0afb9eb8f
1 file changed
+4
-6
+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;
|
||||
|
||||
Reference in new issue
Block a user