mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix a couple of errors, dont give polied players shields, dont let player arrows pop in and out of existance, fix poly players maybe not having movement after unpoly'ing
This commit is contained in:
parent
c9bfc20f10
commit
204b282fdd
5 changed files with 29 additions and 8 deletions
|
@ -305,6 +305,9 @@ local function on_world_post_update_inner()
|
|||
GlobalsSetValue("ew_wand_fired", "0")
|
||||
if times_wand_fired > 0 then
|
||||
local inventory_component = EntityGetFirstComponentIncludingDisabled(ctx.my_player.entity, "Inventory2Component")
|
||||
if inventory_component == nil then
|
||||
return
|
||||
end
|
||||
local last_switch = ComponentGetValue2(inventory_component, "mLastItemSwitchFrame")
|
||||
local switched_now = last_switch == GameGetFrameNum()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue