From 5e0647862dae8d3cc847f09ff081e424a537f7f4 Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Sat, 11 Dec 2021 19:55:04 +0000 Subject: Fix Sir-Mixalot crash. --- src/Java/gtPlusPlus/core/block/machine/Machine_SuperJukebox.java | 8 +++----- 1 file 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; } -- cgit