Fix warnings
This commit is contained in:
parent
375f7ce197
commit
6f701320a7
8
init.lua
8
init.lua
@ -56,7 +56,7 @@ local prepare_writing = function(pos)
|
|||||||
{x = pos.x + lcd_info.delta.x,
|
{x = pos.x + lcd_info.delta.x,
|
||||||
y = pos.y + lcd_info.delta.y,
|
y = pos.y + lcd_info.delta.y,
|
||||||
z = pos.z + lcd_info.delta.z}, "textline:text")
|
z = pos.z + lcd_info.delta.z}, "textline:text")
|
||||||
text:setyaw(lcd_info.yaw or 0)
|
text:set_yaw(lcd_info.yaw or 0)
|
||||||
return text
|
return text
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -123,8 +123,8 @@ minetest.register_node("textline:lcd", {
|
|||||||
end,
|
end,
|
||||||
|
|
||||||
_digistuff_channelcopier_fieldname = "channel",
|
_digistuff_channelcopier_fieldname = "channel",
|
||||||
|
|
||||||
digiline =
|
digiline =
|
||||||
{
|
{
|
||||||
receptor = {},
|
receptor = {},
|
||||||
effector = {
|
effector = {
|
||||||
@ -159,7 +159,7 @@ minetest.register_entity("textline:text", {
|
|||||||
textures = {},
|
textures = {},
|
||||||
|
|
||||||
on_activate = function(self)
|
on_activate = function(self)
|
||||||
local meta = minetest.get_meta(self.object:getpos())
|
local meta = minetest.get_meta(self.object:get_pos())
|
||||||
local text = meta:get_string("text")
|
local text = meta:get_string("text")
|
||||||
self.object:set_properties({textures={textline:generate_texture(textline:create_lines(text))}})
|
self.object:set_properties({textures={textline:generate_texture(textline:create_lines(text))}})
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user