Skip to content

Commit

Permalink
Changed order of respawn
Browse files Browse the repository at this point in the history
  • Loading branch information
SamKemp committed Aug 4, 2019
1 parent 29c54dd commit 9982ded
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ public void onPlayerRespawn(PlayerRespawnEvent event)

event.getPlayer().getInventory().clear();

event.setRespawnLocation(RespawnLocation);

World NewWorld = new WorldCreator("World" + Hardcore.NoDeaths).generateStructures(true).type(WorldType.NORMAL).createWorld();
NewWorld.setDifficulty(Difficulty.HARD);
NewWorld.setKeepSpawnInMemory(false);
Expand All @@ -28,6 +26,6 @@ public void onPlayerRespawn(PlayerRespawnEvent event)

RespawnLocation = NewWorld.getSpawnLocation();

event.getPlayer().teleport(RespawnLocation);
event.setRespawnLocation(RespawnLocation);
}
}

0 comments on commit 9982ded

Please sign in to comment.