#755: Fix NPE when calling getInventory() for virtual EnderChests
By: SydMontague <sydmontague@phoenix-staffel.de>
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
+
|
+
|
||||||
+ @Override
|
+ @Override
|
||||||
+ public Location getLocation() {
|
+ public Location getLocation() {
|
||||||
+ return new Location(this.a.getWorld().getWorld(), this.a.getPosition().getX(), this.a.getPosition().getY(), this.a.getPosition().getZ());
|
+ return this.a != null ? new Location(this.a.getWorld().getWorld(), this.a.getPosition().getX(), this.a.getPosition().getY(), this.a.getPosition().getZ()) : null;
|
||||||
+ }
|
+ }
|
||||||
|
|
||||||
- public InventoryEnderChest() {
|
- public InventoryEnderChest() {
|
||||||
|
|||||||
Reference in New Issue
Block a user