mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Generic cleanup
This commit is contained in:
1 parent
938db4de2d
commit
96b1b8a10c
37 files changed
+667
-635
No files matched your search
@@ -602,6 +602,7 @@ public abstract class EntityHuman extends EntityLiving {
|
||||
Player player = (Player) this.getBukkitEntity();
|
||||
CraftServer server = ((WorldServer) world).getServer();
|
||||
org.bukkit.block.Block bed = ((WorldServer) world).getWorld().getBlockAt(i, j, k);
|
||||
|
||||
PlayerBedEnterEvent event = new PlayerBedEnterEvent(player, bed);
|
||||
server.getPluginManager().callEvent(event);
|
||||
|
||||
@@ -760,7 +761,7 @@ public abstract class EntityHuman extends EntityLiving {
|
||||
public void a(ChunkCoordinates chunkcoordinates) {
|
||||
if (chunkcoordinates != null) {
|
||||
this.b = new ChunkCoordinates(chunkcoordinates);
|
||||
this.spawnWorld = world.worldData.name;
|
||||
this.spawnWorld = world.worldData.name; // CraftBukkit
|
||||
} else {
|
||||
this.b = null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user