1
0
mirror of https://github.com/mt-mods/signs_lib.git synced 2024-12-25 08:40:17 +01:00

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>
This commit is contained in:
tenplus1 2023-09-25 12:50:55 +01:00 committed by GitHub
parent cd6bf1eabe
commit 1c881d6f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,12 +166,14 @@ local ctexcache_wide = {}
-- entity handling -- entity handling
minetest.register_entity("signs_lib:text", { minetest.register_entity("signs_lib:text", {
initial_properties = {
collisionbox = { 0, 0, 0, 0, 0, 0 }, collisionbox = { 0, 0, 0, 0, 0, 0 },
visual = "mesh", visual = "mesh",
mesh = "signs_lib_standard_sign_entity_wall.obj", mesh = "signs_lib_standard_sign_entity_wall.obj",
textures = {}, textures = {},
static_save = true, static_save = true,
backface_culling = false, backface_culling = false,
},
on_activate = function(self) on_activate = function(self)
local node = minetest.get_node(self.object:get_pos()) local node = minetest.get_node(self.object:get_pos())
if minetest.get_item_group(node.name, "sign") == 0 then if minetest.get_item_group(node.name, "sign") == 0 then