Merge remote-tracking branch 'upstream/master'

This commit is contained in:
bri cassa 2023-06-05 23:34:03 +02:00
commit d480fee891
6 changed files with 37 additions and 9 deletions

View File

@ -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

12
lcd.lua
View File

@ -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

View File

@ -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

23
locale/digilines.es.tr Normal file
View File

@ -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

View File

@ -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=

View File

@ -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