add initial_properties

Adds initial_properties update so that 5.7dev doesn't throw an error when entering text on signs.
This commit is contained in:
tenplus1 2023-09-23 14:33:56 +01:00 committed by GitHub
parent cd6bf1eabe
commit 7633d84e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions

15
api.lua
View File

@ -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