SPIGOT-4785: Experience etc lost returning from end

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-04-27 15:43:04 +10:00
parent 748c652126
commit e36edd57b4

View file

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