forked from minetest-mods/digilines
Use tabs instead of spaces, remove unnecessary spaces
This commit is contained in:
parent
682e1335d9
commit
fba6b07edc
@ -52,26 +52,26 @@ 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}, "digilines_lcd:text")
|
z = pos.z + lcd_info.delta.z}, "digilines_lcd:text")
|
||||||
text:setyaw (lcd_info.yaw or 0)
|
text:setyaw(lcd_info.yaw or 0)
|
||||||
--* text:setpitch(lcd_info.yaw or 0)
|
--* text:setpitch(lcd_info.yaw or 0)
|
||||||
return text
|
return text
|
||||||
end
|
end
|
||||||
|
|
||||||
local on_digiline_receive = function(pos, node, channel, msg)
|
local on_digiline_receive = function(pos, node, channel, msg)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local setchan = meta:get_string("channel")
|
local setchan = meta:get_string("channel")
|
||||||
if setchan ~= channel then return end
|
if setchan ~= channel then return end
|
||||||
|
|
||||||
meta:set_string("text", msg)
|
meta:set_string("text", msg)
|
||||||
clearscreen(pos)
|
clearscreen(pos)
|
||||||
if msg ~= "" then
|
if msg ~= "" then
|
||||||
prepare_writing(pos)
|
prepare_writing(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local lcd_box = {
|
local lcd_box = {
|
||||||
type = "wallmounted",
|
type = "wallmounted",
|
||||||
wall_top = {-8/16, 7/16, -8/16, 8/16, 8/16, 8/16}
|
wall_top = {-8/16, 7/16, -8/16, 8/16, 8/16, 8/16}
|
||||||
}
|
}
|
||||||
|
|
||||||
minetest.register_node("digilines_lcd:lcd", {
|
minetest.register_node("digilines_lcd:lcd", {
|
||||||
@ -86,7 +86,7 @@ minetest.register_node("digilines_lcd:lcd", {
|
|||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
node_box = lcd_box,
|
node_box = lcd_box,
|
||||||
selection_box = lcd_box,
|
selection_box = lcd_box,
|
||||||
groups = {choppy = 3, dig_immediate = 2},
|
groups = {choppy = 3, dig_immediate = 2},
|
||||||
|
|
||||||
after_place_node = function (pos, placer, itemstack)
|
after_place_node = function (pos, placer, itemstack)
|
||||||
local param2 = minetest.get_node(pos).param2
|
local param2 = minetest.get_node(pos).param2
|
||||||
|
Loading…
Reference in New Issue
Block a user