From 2c1efede4d9d9f3a0e6e644e9e781a1ba2938156 Mon Sep 17 00:00:00 2001 From: fluxionary <25628292+fluxionary@users.noreply.github.com> Date: Tue, 3 Oct 2023 00:16:09 -0700 Subject: handle interactions w/ explosions (#3) * don't let explosions destroy sign entities * destroy sign entities if sign node is exploded * remove redundant destructor call * make sure other things don't try to interact w/ the signs entity * name will be "" for non-players or unknown players. * remove default value from initial values --------- Co-authored-by: Niklp <89982526+Niklp09@users.noreply.github.com> --- signs/compatibility.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'signs') diff --git a/signs/compatibility.lua b/signs/compatibility.lua index cd69149..8ded649 100644 --- a/signs/compatibility.lua +++ b/signs/compatibility.lua @@ -61,6 +61,11 @@ minetest.register_lbm({ name = "signs:conpatibility_1", -- We need to have this entity registered to be able to remove it. if minetest.registered_entities["signs:text"] == nil then minetest.register_entity("signs:text", { + on_activate = function(self) + if self.object then + self.object:remove() + end + end, initial_properties = { collisionbox = {0, 0, 0, 0, 0, 0}, visual = "upright_sprite", -- cgit v1.2.3