From 613ea77713bb1014868983c1057e79343003c805 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 25 Jul 2017 01:01:50 +0200 Subject: [PATCH] Make sign text entity more robust --- mods/ITEMS/signs/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/signs/init.lua b/mods/ITEMS/signs/init.lua index b1e51872..5b5b1b78 100644 --- a/mods/ITEMS/signs/init.lua +++ b/mods/ITEMS/signs/init.lua @@ -312,11 +312,16 @@ minetest.register_entity("signs:text", { collisionbox = { 0, 0, 0, 0, 0, 0 }, visual = "upright_sprite", textures = {}, + physical = false, + collide_with_objects = false, on_activate = function(self) local meta = minetest.get_meta(self.object:getpos()) local text = meta:get_string("text") - self.object:set_properties({textures={generate_texture(create_lines(text))}}) + self.object:set_properties({ + textures={generate_texture(create_lines(text))}, + }) + self.object:set_armor_groups({ immortal = 1 }) end })