#745: Fix getLocation for Cartography Table and Stonecutter
By: Phoenix616 <max@themoep.de>
This commit is contained in:
@@ -30,7 +30,21 @@
|
||||
private final ContainerAccess containerAccess;
|
||||
private long e;
|
||||
public final IInventory inventory;
|
||||
@@ -26,6 +48,13 @@
|
||||
@@ -19,6 +41,13 @@
|
||||
ContainerCartography.this.a((IInventory) this);
|
||||
super.update();
|
||||
}
|
||||
+
|
||||
+ // CraftBukkit start
|
||||
+ @Override
|
||||
+ public Location getLocation() {
|
||||
+ return containeraccess.getLocation();
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
};
|
||||
this.resultInventory = new InventoryCraftResult() {
|
||||
@Override
|
||||
@@ -26,6 +55,13 @@
|
||||
ContainerCartography.this.a((IInventory) this);
|
||||
super.update();
|
||||
}
|
||||
@@ -44,7 +58,7 @@
|
||||
};
|
||||
this.containerAccess = containeraccess;
|
||||
this.a(new Slot(this.inventory, 0, 15, 15) {
|
||||
@@ -78,10 +107,12 @@
|
||||
@@ -78,10 +114,12 @@
|
||||
this.a(new Slot(playerinventory, j, 8 + j * 18, 142));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user