forked from MineClone5/MineClone5
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,
|
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)
|
||||||
|
|
Loading…
Reference in New Issue