mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 22:22:18 -07:00
#755: Fix NPE when calling getInventory() for virtual EnderChests
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user