Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
#755: Fix NPE when calling getInventory() for virtual EnderChests
Dieser Commit ist enthalten in:
Ursprung
2577f9bfbe
Commit
a339310c48
@ -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() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren