1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-03 21:37:28 +01:00

Don't set spawn world in PlayerInitialSpawnEvent

Fixes GH-85 and GH-157
This commit is contained in:
Zach Brown 2016-03-28 13:00:44 -05:00
parent 010e7652b3
commit 51c738e817

View file

@ -26,7 +26,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ entityplayer.yaw = newLoc.getYaw();
+ entityplayer.pitch = newLoc.getPitch();
+ entityplayer.dimension = ((CraftWorld) newLoc.getWorld()).getHandle().dimension;
+ entityplayer.spawnWorld = entityplayer.world.worldData.getName();
+ // Paper end
+
entityplayer.spawnIn(this.server.getWorldServer(entityplayer.dimension));