fix(serenitea pot): teleport & read born pos from lua

This commit is contained in:
Yazawazi
2022-05-14 04:50:31 +08:00
committed by Melledy
parent 95a062123f
commit ab6aa96144
2 changed files with 16 additions and 37 deletions

View File

@@ -268,6 +268,11 @@ public class World implements Iterable<Player> {
} else if (oldScene == newScene) {
enterType = EnterType.ENTER_GOTO;
}
// Home
if (2001 <= newScene.getId() && newScene.getId() <= 2004) {
enterType = EnterType.ENTER_SELF_HOME;
}
// Teleport packet
player.sendPacket(new PacketPlayerEnterSceneNotify(player, enterType, enterReason, sceneId, pos));