3
0

Fix inventory erase when player respawns by mods or plugins

Close #301
This commit is contained in:
Sergey Shatunov
2016-02-01 18:50:02 +07:00
parent 12b0a52ae0
commit 07698c433a
3 changed files with 8 additions and 5 deletions

View File

@ -503,7 +503,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
if (fromWorld == toWorld) {
entity.playerNetServerHandler.teleport(to);
} else {
server.getHandle().respawnPlayer(entity, toWorld.dimension, false, to); // Cauldron
server.getHandle().respawnPlayer(entity, toWorld.dimension, false, to, cause); // Cauldron
}
return true;
}