mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Added nil check for attack wand.
This commit is contained in:
parent
00be66f3e9
commit
14e8af3144
1 changed files with 3 additions and 1 deletions
|
@ -412,7 +412,9 @@ local function update()
|
|||
if has_potion then
|
||||
np.SetActiveHeldEntity(state.entity, state.potions[1], false, false)
|
||||
else
|
||||
np.SetActiveHeldEntity(state.entity, state.attack_wand, false, false)
|
||||
if state.attack_wand ~= nil then
|
||||
np.SetActiveHeldEntity(state.entity, state.attack_wand, false, false)
|
||||
end
|
||||
end
|
||||
if has_potion and GameGetFrameNum() % 300 == 299 then
|
||||
table.remove(state.potions, 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue