diff options
Diffstat (limited to 'nms-patches/EntityMinecartContainer.patch')
-rw-r--r-- | nms-patches/EntityMinecartContainer.patch | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/nms-patches/EntityMinecartContainer.patch b/nms-patches/EntityMinecartContainer.patch index afd254cd..452fa392 100644 --- a/nms-patches/EntityMinecartContainer.patch +++ b/nms-patches/EntityMinecartContainer.patch @@ -1,11 +1,12 @@ --- a/net/minecraft/server/EntityMinecartContainer.java +++ b/net/minecraft/server/EntityMinecartContainer.java -@@ -1,14 +1,51 @@ - package net.minecraft.server; +@@ -2,14 +2,57 @@ import java.util.Random; + import javax.annotation.Nullable; +// CraftBukkit start +import java.util.List; ++import org.bukkit.Location; +import org.bukkit.craftbukkit.entity.CraftHumanEntity; +import org.bukkit.entity.HumanEntity; +import org.bukkit.inventory.InventoryHolder; @@ -48,12 +49,17 @@ + public void setMaxStackSize(int size) { + maxStack = size; + } ++ ++ @Override ++ public Location getLocation() { ++ return getBukkitEntity().getLocation(); ++ } + // CraftBukkit end + public EntityMinecartContainer(World world) { super(world); } -@@ -71,7 +108,7 @@ +@@ -75,7 +118,7 @@ } public int getMaxStackSize() { @@ -61,4 +67,4 @@ + return maxStack; // CraftBukkit } - public Entity c(int i) { + @Nullable |