Make armor stand entity immortal

This commit is contained in:
Wuzzy 2017-02-14 20:22:34 +01:00
parent 3a24690610
commit 52e3f30eb4

@ -159,6 +159,7 @@ minetest.register_entity("3d_armor_stand:armor_entity", {
timer = 0,
on_activate = function(self)
local pos = self.object:getpos()
self.object:set_armor_groups({immortal=1})
if pos then
self.pos = vector.round(pos)
update_entity(pos)