summaryrefslogtreecommitdiffstats
path: root/nms-patches/InventoryCrafting.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/InventoryCrafting.patch')
-rw-r--r--nms-patches/InventoryCrafting.patch10
1 files changed, 8 insertions, 2 deletions
diff --git a/nms-patches/InventoryCrafting.patch b/nms-patches/InventoryCrafting.patch
index 59e32a22..c51c6dde 100644
--- a/nms-patches/InventoryCrafting.patch
+++ b/nms-patches/InventoryCrafting.patch
@@ -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;