Commit be89a609 authored by Melledy's avatar Melledy
Browse files

Simple sanity check when changing scenes

parent a5a420da
......@@ -183,6 +183,10 @@ public class World implements Iterable<GenshinPlayer> {
}
public void transferPlayerToScene(GenshinPlayer player, int sceneId, Position pos) {
if (player.getScene().getId() == sceneId) {
return;
}
if (player.getScene() != null) {
player.getScene().removePlayer(player);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment