3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 21:10:10 +01:00

Forgot to account for code shuffling with player.dat fixes.

Dieser Commit ist enthalten in:
EvilSeph 2011-06-17 08:59:03 -04:00
Ursprung 39332e5c87
Commit 105cc5393c

Datei anzeigen

@ -980,18 +980,18 @@ public abstract class Entity {
// CraftBukkit end
// CraftBukkit Start - reset world
org.bukkit.World world = null;
CraftWorld world = null;
if (this instanceof EntityPlayer) {
EntityPlayer entityPlayer = (EntityPlayer) this;
String worldName = nbttagcompound.getString("World");
if (worldName == "") {
world = (org.bukkit.World) ((CraftServer) Bukkit.getServer()).getServer().a(entityPlayer.dimension);
world = ((CraftServer) Bukkit.getServer()).getServer().a(entityPlayer.dimension).getWorld();
} else {
world = Bukkit.getServer().getWorld(worldName);
world = (CraftWorld) Bukkit.getServer().getWorld(worldName);
}
}
a(world == null ? null : ((CraftWorld) world).getHandle());
a(world == null ? null : world.getHandle());
// CraftBukkit End
}