diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2021-12-11 19:55:04 +0000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2021-12-11 19:55:04 +0000 |
commit | 5e0647862dae8d3cc847f09ff081e424a537f7f4 (patch) | |
tree | dd64e46c3f48fed57f0cf292e7f83b430f224f39 | |
parent | 44d662940d82150a12592cc26219ac7c1dab6420 (diff) | |
download | GT5-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.java | 8 |
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; } |