diff --git a/src/com/massivecraft/massivecore/adapter/InventoryAdapter.java b/src/com/massivecraft/massivecore/adapter/InventoryAdapter.java index ea3cb9dc..8586a668 100644 --- a/src/com/massivecraft/massivecore/adapter/InventoryAdapter.java +++ b/src/com/massivecraft/massivecore/adapter/InventoryAdapter.java @@ -255,11 +255,12 @@ public class InventoryAdapter implements JsonDeserializer, JsonSerial // -------------------------------------------- // // This is a modified copyOfRange implementation. + // Both boundaries are inclusive. // It returns the original when possible. public static T[] range(T[] original, int from, int to) { if (from == 0 && to == original.length - 1) return original; - return Arrays.copyOfRange(original, from, to); + return Arrays.copyOfRange(original, from, to + 1); } }