Generic cleanup

This commit is contained in:
Erik Broes committed 2011-06-12 00:30:52 +02:00
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;
}