fix(game): stop spawning the player on the tile elevation, which freezes the client (#144)
This commit is contained in:
1 parent
453b1c3fa1
commit
0dab4b16fa
1 file changed
+2
-1
@@ -256,7 +256,8 @@ constructor(
|
||||
state.x = info.positionX
|
||||
state.y = info.positionY
|
||||
state.facingDirection = info.positionFacing
|
||||
state.elevation = map?.tileAt(info.positionX.toInt(), info.positionY.toInt())?.elevation ?: 0
|
||||
// Elevation is left alone on purpose. Spawning the player on the tile's own elevation makes
|
||||
// the client refuse every step, and a warp has already set the one value that works.
|
||||
|
||||
multiplayerService.broadcastMessage(
|
||||
ChatMessagePacket(
|
||||
|
||||
Reference in new issue
Block a user