summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <jeija@mesecons.net>2014-02-26 15:58:24 +0100
committerJeija <jeija@mesecons.net>2014-02-26 15:58:24 +0100
commitfba6b07edcd641b6081688cd1efb1e31392a2577 (patch)
tree35be30a1b93547229b2f278f676c487fca1e3386
parent682e1335d91aff476e8cab81a61e4d2e4f649c34 (diff)
Use tabs instead of spaces, remove unnecessary spaces
-rw-r--r--digilines_lcd/init.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/digilines_lcd/init.lua b/digilines_lcd/init.lua
index 2eefdb3..bcd9e47 100644
--- a/digilines_lcd/init.lua
+++ b/digilines_lcd/init.lua
@@ -52,26 +52,26 @@ local prepare_writing = function(pos)
{x = pos.x + lcd_info.delta.x,
y = pos.y + lcd_info.delta.y,
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)
return text
end
local on_digiline_receive = function(pos, node, channel, msg)
local meta = minetest.get_meta(pos)
- local setchan = meta:get_string("channel")
+ local setchan = meta:get_string("channel")
if setchan ~= channel then return end
- meta:set_string("text", msg)
+ meta:set_string("text", msg)
clearscreen(pos)
- if msg ~= "" then
- prepare_writing(pos)
- end
+ if msg ~= "" then
+ prepare_writing(pos)
+ end
end
local lcd_box = {
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", {
@@ -86,7 +86,7 @@ minetest.register_node("digilines_lcd:lcd", {
paramtype2 = "wallmounted",
node_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)
local param2 = minetest.get_node(pos).param2