From fba6b07edcd641b6081688cd1efb1e31392a2577 Mon Sep 17 00:00:00 2001 From: Jeija Date: Wed, 26 Feb 2014 15:58:24 +0100 Subject: [PATCH] Use tabs instead of spaces, remove unnecessary spaces --- digilines_lcd/init.lua | 16 ++++++++-------- 1 file 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