mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Make armor stand entity immortal
This commit is contained in:
parent
3a24690610
commit
52e3f30eb4
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue