mirror of
https://github.com/GTNewHorizons/WirelessCraftingTerminal.git
synced 2026-11-18 19:29:10 +00:00
Merge pull request #24 from GTNewHorizons/hotfix-infinity-booster
Fix infinity booster not working anymore
This commit is contained in:
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