#745: Fix getLocation for Cartography Table and Stonecutter

By: Phoenix616 <max@themoep.de>
This commit is contained in:
CraftBukkit/Spigot
2020-09-03 18:37:55 +10:00
parent 2ee7427806
commit 48610ab3f5
2 changed files with 34 additions and 5 deletions

View File

@@ -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));
}