mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix errors in last
This commit is contained in:
parent
1abcc9f525
commit
d16dddbb29
1 changed files with 4 additions and 1 deletions
|
@ -278,7 +278,7 @@ end
|
|||
|
||||
local camera_player = -1
|
||||
|
||||
local camera_target = ctx.my_player.entity
|
||||
local camera_target = nil
|
||||
|
||||
local inventory_target = nil
|
||||
|
||||
|
@ -308,6 +308,9 @@ local function set_camera_pos()
|
|||
t_x, t_y = EntityGetTransform(cam_target)
|
||||
end
|
||||
GameSetCameraPos(t_x, t_y)
|
||||
if camera_target == nil then
|
||||
camera_target = ctx.my_player.entity
|
||||
end
|
||||
if camera_target ~= cam_target then
|
||||
if ctx.my_player.entity ~= camera_target then
|
||||
EntityRemoveComponent(camera_target, inventory_target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue