aboutsummaryrefslogtreecommitdiff
path: root/signs
diff options
context:
space:
mode:
authorfluxionary <25628292+fluxionary@users.noreply.github.com>2023-10-03 00:16:09 -0700
committerGitHub <noreply@github.com>2023-10-03 09:16:09 +0200
commit2c1efede4d9d9f3a0e6e644e9e781a1ba2938156 (patch)
tree6faab11b7c15246aa184b51e7ac3aad2b11faf47 /signs
parente25588cf914e787ea84b7f62bacb9228fc05018a (diff)
downloaddisplay_modpack_no_craft-2c1efede4d9d9f3a0e6e644e9e781a1ba2938156.tar.gz
display_modpack_no_craft-2c1efede4d9d9f3a0e6e644e9e781a1ba2938156.zip
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>
Diffstat (limited to 'signs')
-rw-r--r--signs/compatibility.lua5
1 files changed, 5 insertions, 0 deletions
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",