summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorCeltic Minstrel <celtic.minstrel.ca@some.place>2012-02-29 15:35:36 -0500
committerEvilSeph <evilseph@gmail.com>2012-02-29 15:37:35 -0500
commit8524ff8ef7be2d386e98f65fdca14c0157e8309f (patch)
tree4f6350b7766cd4a131867136625552f6dd0e8dcb /src/main/java
parent0842bab48b1c24f113c61606a294f5bcdf2e1315 (diff)
downloadcraftbukkit-8524ff8ef7be2d386e98f65fdca14c0157e8309f.tar
craftbukkit-8524ff8ef7be2d386e98f65fdca14c0157e8309f.tar.gz
craftbukkit-8524ff8ef7be2d386e98f65fdca14c0157e8309f.tar.lz
craftbukkit-8524ff8ef7be2d386e98f65fdca14c0157e8309f.tar.xz
craftbukkit-8524ff8ef7be2d386e98f65fdca14c0157e8309f.zip
Fix for Java 1.5
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java
index e827bc60..ee381e6b 100644
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java
@@ -1,7 +1,5 @@
package org.bukkit.craftbukkit.inventory;
-import java.util.Arrays;
-
import net.minecraft.server.CraftingRecipe;
import net.minecraft.server.IInventory;
import net.minecraft.server.InventoryCrafting;
@@ -9,6 +7,7 @@ import net.minecraft.server.InventoryCrafting;
import org.bukkit.inventory.CraftingInventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.Recipe;
+import org.bukkit.util.Java15Compat;
public class CraftInventoryCrafting extends CraftInventory implements CraftingInventory {
private IInventory resultInventory;
@@ -38,7 +37,7 @@ public class CraftInventoryCrafting extends CraftInventory implements CraftingIn
if (len > items.length) {
throw new IllegalArgumentException("Invalid inventory size; expected " + len + " or less");
}
- setContents(items[0], Arrays.copyOfRange(items, 1, items.length));
+ setContents(items[0], Java15Compat.Arrays_copyOfRange(items, 1, items.length));
}
@Override