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:
parent
cd6bf1eabe
commit
7633d84e89
15
api.lua
15
api.lua
|
@ -166,12 +166,15 @@ local ctexcache_wide = {}
|
||||||
-- entity handling
|
-- entity handling
|
||||||
|
|
||||||
minetest.register_entity("signs_lib:text", {
|
minetest.register_entity("signs_lib:text", {
|
||||||
collisionbox = { 0, 0, 0, 0, 0, 0 },
|
|
||||||
visual = "mesh",
|
initial_properties = {
|
||||||
mesh = "signs_lib_standard_sign_entity_wall.obj",
|
collisionbox = { 0, 0, 0, 0, 0, 0 },
|
||||||
textures = {},
|
visual = "mesh",
|
||||||
static_save = true,
|
mesh = "signs_lib_standard_sign_entity_wall.obj",
|
||||||
backface_culling = false,
|
textures = {},
|
||||||
|
static_save = true,
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue