From 7633d84e894d2fc54adc5e7ce26cd86e43610129 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 23 Sep 2023 14:33:56 +0100 Subject: [PATCH] add initial_properties Adds initial_properties update so that 5.7dev doesn't throw an error when entering text on signs. --- api.lua | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/api.lua b/api.lua index 39bb9e6..a15d185 100644 --- a/api.lua +++ b/api.lua @@ -166,12 +166,15 @@ local ctexcache_wide = {} -- entity handling minetest.register_entity("signs_lib:text", { - collisionbox = { 0, 0, 0, 0, 0, 0 }, - visual = "mesh", - mesh = "signs_lib_standard_sign_entity_wall.obj", - textures = {}, - static_save = true, - backface_culling = false, + + initial_properties = { + collisionbox = { 0, 0, 0, 0, 0, 0 }, + visual = "mesh", + mesh = "signs_lib_standard_sign_entity_wall.obj", + textures = {}, + static_save = true, + backface_culling = false, + }, on_activate = function(self) local node = minetest.get_node(self.object:get_pos()) if minetest.get_item_group(node.name, "sign") == 0 then