Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
SPIGOT-5297: PlayerBedLeaveEvent.getBed() returns player location
Dieser Commit ist enthalten in:
Ursprung
8d4bc54183
Commit
631eaeb09b
@ -379,7 +379,7 @@
|
||||
+ Player player = (Player) this.getBukkitEntity();
|
||||
+
|
||||
+ org.bukkit.block.Block bed;
|
||||
+ BlockPosition blockposition = this.getBed();
|
||||
+ BlockPosition blockposition = optional.orElse(null);
|
||||
+ if (blockposition != null) {
|
||||
+ bed = this.world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
||||
+ } else {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren