#745: Fix getLocation for Cartography Table and Stonecutter
By: Phoenix616 <max@themoep.de>
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
--- a/net/minecraft/server/ContainerStonecutter.java
|
||||
+++ b/net/minecraft/server/ContainerStonecutter.java
|
||||
@@ -2,6 +2,11 @@
|
||||
@@ -2,6 +2,12 @@
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import java.util.List;
|
||||
+// CraftBukkit start
|
||||
+import org.bukkit.Location;
|
||||
+import org.bukkit.craftbukkit.inventory.CraftInventoryStonecutter;
|
||||
+import org.bukkit.craftbukkit.inventory.CraftInventoryView;
|
||||
+import org.bukkit.entity.Player;
|
||||
@@ -12,7 +13,7 @@
|
||||
|
||||
public class ContainerStonecutter extends Container {
|
||||
|
||||
@@ -16,6 +21,21 @@
|
||||
@@ -16,6 +22,21 @@
|
||||
private Runnable l;
|
||||
public final IInventory inventory;
|
||||
private final InventoryCraftResult resultInventory;
|
||||
@@ -34,7 +35,21 @@
|
||||
|
||||
public ContainerStonecutter(int i, PlayerInventory playerinventory) {
|
||||
this(i, playerinventory, ContainerAccess.a);
|
||||
@@ -82,10 +102,12 @@
|
||||
@@ -35,6 +56,13 @@
|
||||
ContainerStonecutter.this.a((IInventory) this);
|
||||
ContainerStonecutter.this.l.run();
|
||||
}
|
||||
+
|
||||
+ // CraftBukkit start
|
||||
+ @Override
|
||||
+ public Location getLocation() {
|
||||
+ return containeraccess.getLocation();
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
};
|
||||
this.resultInventory = new InventoryCraftResult();
|
||||
this.containerAccess = containeraccess;
|
||||
@@ -82,10 +110,12 @@
|
||||
}
|
||||
|
||||
this.a(this.containerProperty);
|
||||
|
||||
Reference in New Issue
Block a user