mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Fix thrown items duplicating
This commit is contained in:
parent
f23498ccdf
commit
a05cd4be27
2 changed files with 12 additions and 11 deletions
|
@ -123,16 +123,17 @@ local player_fns = {
|
|||
controls_data.action = false
|
||||
end
|
||||
|
||||
if(message.throw)then
|
||||
ComponentSetValue2(controlsComp, "mButtonDownThrow", true)
|
||||
if (not controls_data.throw) then
|
||||
ComponentSetValue2(controlsComp, "mButtonFrameThrow", GameGetFrameNum() + 1)
|
||||
end
|
||||
controls_data.throw = true
|
||||
else
|
||||
ComponentSetValue2(controlsComp, "mButtonDownThrow", false)
|
||||
controls_data.throw = false
|
||||
end
|
||||
-- Do not sync this one, as thrown items are handled by item_sync
|
||||
-- if(message.throw)then
|
||||
-- ComponentSetValue2(controlsComp, "mButtonDownThrow", true)
|
||||
-- if (not controls_data.throw) then
|
||||
-- ComponentSetValue2(controlsComp, "mButtonFrameThrow", GameGetFrameNum() + 1)
|
||||
-- end
|
||||
-- controls_data.throw = true
|
||||
-- else
|
||||
-- ComponentSetValue2(controlsComp, "mButtonDownThrow", false)
|
||||
-- controls_data.throw = false
|
||||
-- end
|
||||
|
||||
if(message.interact)then
|
||||
ComponentSetValue2(controlsComp, "mButtonDownInteract", true)
|
||||
|
|
2
todo.txt
2
todo.txt
|
@ -11,7 +11,7 @@
|
|||
- Общее золото
|
||||
- Удаление лишних клиентов при загрузке игры
|
||||
- intern pathnames in enemy sync
|
||||
- Fix bottles and other items duplicating when thrown (on host?)
|
||||
+ Fix bottles and other items duplicating when thrown (on host?)
|
||||
|
||||
- Fix weird no gui mode
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue