mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-12 18:55:51 -07:00
Update to Minecraft 1.9
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
--- a/net/minecraft/server/InventoryCrafting.java
|
||||
+++ b/net/minecraft/server/InventoryCrafting.java
|
||||
@@ -1,5 +1,13 @@
|
||||
@@ -1,5 +1,14 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import java.util.List;
|
||||
+import org.bukkit.Location;
|
||||
+
|
||||
+import org.bukkit.craftbukkit.entity.CraftHumanEntity;
|
||||
+import org.bukkit.entity.HumanEntity;
|
||||
@@ -14,7 +15,7 @@
|
||||
public class InventoryCrafting implements IInventory {
|
||||
|
||||
private final ItemStack[] items;
|
||||
@@ -7,6 +15,48 @@
|
||||
@@ -7,6 +16,53 @@
|
||||
private final int c;
|
||||
private final Container d;
|
||||
|
||||
@@ -54,6 +55,11 @@
|
||||
+ resultInventory.setMaxStackSize(size);
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public Location getLocation() {
|
||||
+ return owner.getBukkitEntity().getLocation();
|
||||
+ }
|
||||
+
|
||||
+ public InventoryCrafting(Container container, int i, int j, EntityHuman player) {
|
||||
+ this(container, i, j);
|
||||
+ this.owner = player;
|
||||
|
Reference in New Issue
Block a user