1 parent 14dc3b5 commit df09fe7Copy full SHA for df09fe7
1 file changed
src/main/java/cz/devfire/mysteryblocks/Block/Handler/GUI/BlockGUIHandler.java
@@ -124,7 +124,7 @@ public void open(Player player) {
124
BlockHistoryHandler historyHandler = mysteryBlock.getHistoryHandler();
125
if (historyHandler.isEnabled()) {
126
for (int j = 0; j < historyHandler.getSaveCount(); j++) {
127
- if (j > historyHandler.getHistorySlots().length) continue;
+ if (j >= historyHandler.getHistorySlots().length) continue;
128
int slot = historyHandler.getHistorySlots()[j];
129
130
ItemStack stack = new ItemStack(historyHandler.getHistoryItem());
@@ -146,4 +146,4 @@ public void open(Player player) {
146
player.openInventory(inventory);
147
viewers.add(player);
148
}
149
-}
+}
0 commit comments