diff --git a/inventory.lua b/inventory.lua index 3fa975c..9fc4542 100644 --- a/inventory.lua +++ b/inventory.lua @@ -185,7 +185,6 @@ minetest.register_node("digilines:chest", { on_receive_fields = function(pos, _, fields, sender) local name = sender:get_player_name() if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then - minetest.record_protection_violation(pos, name) return end if fields.channel ~= nil then diff --git a/lcd.lua b/lcd.lua index 5a1d3a0..1bad0c5 100644 --- a/lcd.lua +++ b/lcd.lua @@ -176,10 +176,13 @@ local lcds = { -- on ground --* [1] = {delta = {x = 0, y =-0.4, z = 0}, pitch = math.pi / 2}, -- sides - [2] = {delta = {x = 0.437, y = 0, z = 0}, yaw = math.pi / -2}, - [3] = {delta = {x = -0.437, y = 0, z = 0}, yaw = math.pi / 2}, - [4] = {delta = {x = 0, y = 0, z = 0.437}, yaw = 0}, - [5] = {delta = {x = 0, y = 0, z = -0.437}, yaw = math.pi}, + + -- Note: 0.437 is on the surface but we need some space to avoid + -- z-fighting in distant places (e.g. 30000,10,0) + [2] = {delta = {x = 0.43, y = 0, z = 0}, yaw = math.pi / -2}, + [3] = {delta = {x = -0.43, y = 0, z = 0}, yaw = math.pi / 2}, + [4] = {delta = {x = 0, y = 0, z = 0.43}, yaw = 0}, + [5] = {delta = {x = 0, y = 0, z = -0.43}, yaw = math.pi}, } local reset_meta = function(pos) @@ -307,7 +310,6 @@ minetest.register_node("digilines:lcd", { on_receive_fields = function(pos, _, fields, sender) local name = sender:get_player_name() if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then - minetest.record_protection_violation(pos, name) return end if (fields.channel) then diff --git a/lightsensor.lua b/lightsensor.lua index 41fa6e0..5f11e13 100644 --- a/lightsensor.lua +++ b/lightsensor.lua @@ -55,7 +55,6 @@ minetest.register_node("digilines:lightsensor", { on_receive_fields = function(pos, _, fields, sender) local name = sender:get_player_name() if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then - minetest.record_protection_violation(pos, name) return end if (fields.channel) then diff --git a/locale/digilines.es.tr b/locale/digilines.es.tr new file mode 100644 index 0000000..849ed46 --- /dev/null +++ b/locale/digilines.es.tr @@ -0,0 +1,23 @@ +# textdomain: digilines + + +### inventory.lua ### + +Channel=Canal +Digiline Chest=Cofre Digiline + +### lcd.lua ### + +Digiline LCD=LCD Digiline + +### lightsensor.lua ### + +Digiline Lightsensor=Sensor de Luz Digiline + +### rtc.lua ### + +Digiline Real Time Clock (RTC)=Reloj de Tiempo Real Digiline + +### wire_std.lua ### + +Digiline=Digiline diff --git a/locale/template.txt b/locale/template.txt index b840f23..2333a0d 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1,17 +1,23 @@ # textdomain: digilines + ### inventory.lua ### -Digiline Chest= + Channel= +Digiline Chest= ### lcd.lua ### + Digiline LCD= ### lightsensor.lua ### + Digiline Lightsensor= ### rtc.lua ### + Digiline Real Time Clock (RTC)= ### wire_std.lua ### + Digiline= diff --git a/rtc.lua b/rtc.lua index 3414ed6..dac60e8 100644 --- a/rtc.lua +++ b/rtc.lua @@ -51,7 +51,6 @@ minetest.register_node("digilines:rtc", { on_receive_fields = function(pos, _, fields, sender) local name = sender:get_player_name() if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then - minetest.record_protection_violation(pos, name) return end if (fields.channel) then