Fix crash when rejoining as Vix.

This commit is contained in:
Signal 2025-12-01 11:27:38 -05:00
parent 85817a33b8
commit c54579e426

View file

@ -34,7 +34,9 @@ function ns.apply_vix(m)
m.eye_height = 1.5
-- Switch hand appearance.
m.inv:set_stack("main", 1, ItemStack("input_"..m.character))
m.object:hud_change(m.healthbar, "text", "artifact_heart_vix.png")
if m.healthbar then
m.object:hud_change(m.healthbar, "text", "artifact_heart_vix.png")
end
if m.blackrod then
m.blackrod:remove()
m.blackrod = nil