mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 03:35:51 -07:00
Fixed not being able to login if the world saved in your player.dat no longer exists. Thanks for the help Rigby and Verrier!
This commit is contained in:
@@ -916,8 +916,6 @@ public abstract class Entity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void e(NBTTagCompound nbttagcompound) {
|
public void e(NBTTagCompound nbttagcompound) {
|
||||||
// CraftBukkit - reset world
|
|
||||||
a(((CraftWorld)Bukkit.getServer().getWorld(nbttagcompound.getString("World"))).getHandle());
|
|
||||||
NBTTagList nbttaglist = nbttagcompound.l("Pos");
|
NBTTagList nbttaglist = nbttagcompound.l("Pos");
|
||||||
NBTTagList nbttaglist1 = nbttagcompound.l("Motion");
|
NBTTagList nbttaglist1 = nbttagcompound.l("Motion");
|
||||||
NBTTagList nbttaglist2 = nbttagcompound.l("Rotation");
|
NBTTagList nbttaglist2 = nbttagcompound.l("Rotation");
|
||||||
@@ -964,6 +962,11 @@ public abstract class Entity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
|
||||||
|
// CraftBukkit Start - reset world
|
||||||
|
org.bukkit.World world = Bukkit.getServer().getWorld(nbttagcompound.getString("World"));
|
||||||
|
a(world == null ? null : ((CraftWorld) world).getHandle());
|
||||||
|
// CraftBukkit End
|
||||||
}
|
}
|
||||||
|
|
||||||
protected final String af() {
|
protected final String af() {
|
||||||
|
Reference in New Issue
Block a user