From 52e3f30eb4d7c516884d2b692c143f1bf1626094 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 14 Feb 2017 20:22:34 +0100 Subject: [PATCH] Make armor stand entity immortal --- mods/minetest-3d_armor/3d_armor_stand/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/minetest-3d_armor/3d_armor_stand/init.lua b/mods/minetest-3d_armor/3d_armor_stand/init.lua index e9b7fd861d..2b99a93eed 100644 --- a/mods/minetest-3d_armor/3d_armor_stand/init.lua +++ b/mods/minetest-3d_armor/3d_armor_stand/init.lua @@ -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)