Make armor stand entity immortal
This commit is contained in:
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user