From 9c2b9809383e2e295e84c127c12ce24a31b49c3b Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Tue, 20 Dec 2022 19:05:14 +0100 Subject: [PATCH 1/3] Fix LCD Z-fighting in distant places, large coordinates Co-authored-by: DS --- lcd.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lcd.lua b/lcd.lua index 5a1d3a0..f6dac22 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) From fa4f7a949c476b5a12f9f2fb1a469ac6d9b098b2 Mon Sep 17 00:00:00 2001 From: nonfreegithub Date: Tue, 10 Jan 2023 16:26:31 +0100 Subject: [PATCH 2/3] Add ES locale and update the template (#77) --- locale/digilines.es.tr | 23 +++++++++++++++++++++++ locale/template.txt | 8 +++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 locale/digilines.es.tr 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= From 722ff851dd4893b9536908f5377070f070b06914 Mon Sep 17 00:00:00 2001 From: fluxionary <25628292+fluxionary@users.noreply.github.com> Date: Wed, 10 May 2023 12:40:38 -0700 Subject: [PATCH 3/3] Don't record a protection violation when players aren't allowed to modify a node (#78) --- inventory.lua | 1 - lcd.lua | 1 - lightsensor.lua | 1 - rtc.lua | 1 - 4 files changed, 4 deletions(-) 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 f6dac22..1bad0c5 100644 --- a/lcd.lua +++ b/lcd.lua @@ -310,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/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