mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 04:02:50 +01:00
Fix for Java 1.5
This commit is contained in:
parent
0842bab48b
commit
8524ff8ef7
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue