LiteLDev / LegacyScriptEngine

A plugin engine for running LLSE plugins on LeviLamina
https://lse.liteldev.com/
GNU General Public License v3.0
43 stars 8 forks source link

[Bug]: 获取玩家主世界的出生点坐标会崩服玩家 player.teleport(Player.getRespawnPosition()) #115

Closed WuHuiZhang6902 closed 4 months ago

WuHuiZhang6902 commented 4 months ago

Describe the bug

获取玩家主世界的出生点坐标会崩服

To Reproduce

Player.teleport(Player.getRespawnPosition())

Expected behavior

修复该问题

Screenshots

No response

Platform

Windows 10

BDS Version

1.20.72

LeviLamina Version

0.11.0

LegacyScriptEngine Version

0.6.4

Additional context

No response

ShrBox commented 4 months ago

鉴定为玩家没有设置重生点时Mojang的API会返回一串神必负数作为坐标和维度,调用API传送到此坐标自然会导致崩溃