mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix tether again
This commit is contained in:
parent
3f25eeca78
commit
0081f85951
1 changed files with 3 additions and 2 deletions
|
@ -419,11 +419,12 @@ function player_fns.serialize_position(player_data)
|
|||
end
|
||||
|
||||
function player_fns.deserialize_position(message, player_data)
|
||||
player_data.pos_x = message.x
|
||||
player_data.pos_y = message.y
|
||||
|
||||
if player_data == nil or not EntityGetIsAlive(player_data.entity) then
|
||||
return
|
||||
end
|
||||
player_data.pos_x = x
|
||||
player_data.pos_y = y
|
||||
local entity = player_data.entity
|
||||
local character_data = EntityGetFirstComponentIncludingDisabled(entity, "CharacterDataComponent")
|
||||
local velocity_comp = EntityGetFirstComponentIncludingDisabled(entity, "VelocityComponent")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue