fix off by one overflow

This commit is contained in:
Glease committed 2022-03-01 23:56:04 +08:00
1 parent 9dd145bc67
commit da98b476b0
1 file changed
+1 -1
@@ -233,7 +233,7 @@ public class StructureUtility {
}
private Pair<Block, Integer> getHint(ItemStack trigger) {
return hints.get(Math.min(Math.max(trigger.stackSize, 1), hints.size()));
return hints.get(Math.min(Math.max(trigger.stackSize, 1), hints.size()) - 1);
}
@Override