Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
Forgot to account for code shuffling with player.dat fixes.
Dieser Commit ist enthalten in:
Ursprung
39332e5c87
Commit
105cc5393c
@ -980,18 +980,18 @@ public abstract class Entity {
|
|||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
|
||||||
// CraftBukkit Start - reset world
|
// CraftBukkit Start - reset world
|
||||||
org.bukkit.World world = null;
|
CraftWorld world = null;
|
||||||
if (this instanceof EntityPlayer) {
|
if (this instanceof EntityPlayer) {
|
||||||
EntityPlayer entityPlayer = (EntityPlayer) this;
|
EntityPlayer entityPlayer = (EntityPlayer) this;
|
||||||
String worldName = nbttagcompound.getString("World");
|
String worldName = nbttagcompound.getString("World");
|
||||||
if (worldName == "") {
|
if (worldName == "") {
|
||||||
world = (org.bukkit.World) ((CraftServer) Bukkit.getServer()).getServer().a(entityPlayer.dimension);
|
world = ((CraftServer) Bukkit.getServer()).getServer().a(entityPlayer.dimension).getWorld();
|
||||||
} else {
|
} 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
|
// CraftBukkit End
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren