mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 00:47:38 +01:00
#755: Fix NPE when calling getInventory() for virtual EnderChests
This commit is contained in:
parent
2577f9bfbe
commit
a339310c48
@ -18,7 +18,7 @@
|
||||
+
|
||||
+ @Override
|
||||
+ 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() {
|
||||
|
Loading…
Reference in New Issue
Block a user