SPIGOT-4785: Experience etc lost returning from end

This commit is contained in:
md_5 2019-04-27 15:43:04 +10:00
parent c9fa596b9d
commit 5e0b63c1a0

View file

@ -475,7 +475,7 @@
+ cserver.getPluginManager().callEvent(respawnEvent); + cserver.getPluginManager().callEvent(respawnEvent);
+ +
+ location = respawnEvent.getRespawnLocation(); + location = respawnEvent.getRespawnLocation();
+ entityplayer.reset(); + if (!flag) entityplayer.reset(); // SPIGOT-4785
+ } else { + } else {
+ location.setWorld(server.getWorldServer(dimensionmanager).getWorld()); + location.setWorld(server.getWorldServer(dimensionmanager).getWorld());
} }