aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2021-12-11 19:55:04 +0000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2021-12-11 19:55:04 +0000
commit5e0647862dae8d3cc847f09ff081e424a537f7f4 (patch)
treedd64e46c3f48fed57f0cf292e7f83b430f224f39
parent44d662940d82150a12592cc26219ac7c1dab6420 (diff)
downloadGT5-Unofficial-5e0647862dae8d3cc847f09ff081e424a537f7f4.tar.gz
GT5-Unofficial-5e0647862dae8d3cc847f09ff081e424a537f7f4.tar.bz2
GT5-Unofficial-5e0647862dae8d3cc847f09ff081e424a537f7f4.zip
Fix Sir-Mixalot crash.
-rw-r--r--src/Java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java b/src/Java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java
index fe8120e635..021279f820 100644
--- a/src/Java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java
+++ b/src/Java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java
@@ -532,14 +532,12 @@ public class Machine_SuperJukebox extends BlockJukebox
}
return this.getInventory().isItemValidForSlot(slot, itemstack);
}
+
+ private final static int[] SIDED_SLOTS = new int[] {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17};
@Override
public int[] getAccessibleSlotsFromSide(final int p_94128_1_) {
- final int[] accessibleSides = new int[this.getSizeInventory()];
- for (int r = 0; r < this.getInventory().getSizeInventory(); r++) {
- accessibleSides[r] = r;
- }
- return accessibleSides;
+ return SIDED_SLOTS;
}