Fix crash when rejoining as Vix.
This commit is contained in:
parent
85817a33b8
commit
c54579e426
1 changed files with 3 additions and 1 deletions
|
|
@ -34,7 +34,9 @@ function ns.apply_vix(m)
|
||||||
m.eye_height = 1.5
|
m.eye_height = 1.5
|
||||||
-- Switch hand appearance.
|
-- Switch hand appearance.
|
||||||
m.inv:set_stack("main", 1, ItemStack("input_"..m.character))
|
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
|
if m.blackrod then
|
||||||
m.blackrod:remove()
|
m.blackrod:remove()
|
||||||
m.blackrod = nil
|
m.blackrod = nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue