From 1c881d6f2262c208932e5b990f8c924076662e41 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Mon, 25 Sep 2023 12:50:55 +0100 Subject: [PATCH] add initial_properties (#22) * add initial_properties Adds initial_properties update so that 5.7dev doesn't throw an error when entering text on signs. * Remove newline --------- Co-authored-by: Niklp <89982526+Niklp09@users.noreply.github.com> --- api.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/api.lua b/api.lua index 39bb9e6..2b34615 100644 --- a/api.lua +++ b/api.lua @@ -166,12 +166,14 @@ 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