mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
#755: Fix NPE when calling getInventory() for virtual EnderChests
This commit is contained in:
parent
2577f9bfbe
commit
a339310c48
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue