Make armor stand entity immortal

This commit is contained in:
Wuzzy 2017-02-14 20:22:34 +01:00
parent 3a24690610
commit 52e3f30eb4
1 changed files with 1 additions and 0 deletions

View File

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