forked from minetest-mods/digilines
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
d480fee891
@ -185,7 +185,6 @@ minetest.register_node("digilines:chest", {
|
|||||||
on_receive_fields = function(pos, _, fields, sender)
|
on_receive_fields = function(pos, _, fields, sender)
|
||||||
local name = sender:get_player_name()
|
local name = sender:get_player_name()
|
||||||
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
|
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
|
||||||
minetest.record_protection_violation(pos, name)
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if fields.channel ~= nil then
|
if fields.channel ~= nil then
|
||||||
|
12
lcd.lua
12
lcd.lua
@ -176,10 +176,13 @@ local lcds = {
|
|||||||
-- on ground
|
-- on ground
|
||||||
--* [1] = {delta = {x = 0, y =-0.4, z = 0}, pitch = math.pi / 2},
|
--* [1] = {delta = {x = 0, y =-0.4, z = 0}, pitch = math.pi / 2},
|
||||||
-- sides
|
-- 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},
|
-- Note: 0.437 is on the surface but we need some space to avoid
|
||||||
[4] = {delta = {x = 0, y = 0, z = 0.437}, yaw = 0},
|
-- z-fighting in distant places (e.g. 30000,10,0)
|
||||||
[5] = {delta = {x = 0, y = 0, z = -0.437}, yaw = math.pi},
|
[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)
|
local reset_meta = function(pos)
|
||||||
@ -307,7 +310,6 @@ minetest.register_node("digilines:lcd", {
|
|||||||
on_receive_fields = function(pos, _, fields, sender)
|
on_receive_fields = function(pos, _, fields, sender)
|
||||||
local name = sender:get_player_name()
|
local name = sender:get_player_name()
|
||||||
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
|
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
|
||||||
minetest.record_protection_violation(pos, name)
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if (fields.channel) then
|
if (fields.channel) then
|
||||||
|
@ -55,7 +55,6 @@ minetest.register_node("digilines:lightsensor", {
|
|||||||
on_receive_fields = function(pos, _, fields, sender)
|
on_receive_fields = function(pos, _, fields, sender)
|
||||||
local name = sender:get_player_name()
|
local name = sender:get_player_name()
|
||||||
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
|
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
|
||||||
minetest.record_protection_violation(pos, name)
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if (fields.channel) then
|
if (fields.channel) then
|
||||||
|
23
locale/digilines.es.tr
Normal file
23
locale/digilines.es.tr
Normal 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
|
@ -1,17 +1,23 @@
|
|||||||
# textdomain: digilines
|
# textdomain: digilines
|
||||||
|
|
||||||
|
|
||||||
### inventory.lua ###
|
### inventory.lua ###
|
||||||
Digiline Chest=
|
|
||||||
Channel=
|
Channel=
|
||||||
|
Digiline Chest=
|
||||||
|
|
||||||
### lcd.lua ###
|
### lcd.lua ###
|
||||||
|
|
||||||
Digiline LCD=
|
Digiline LCD=
|
||||||
|
|
||||||
### lightsensor.lua ###
|
### lightsensor.lua ###
|
||||||
|
|
||||||
Digiline Lightsensor=
|
Digiline Lightsensor=
|
||||||
|
|
||||||
### rtc.lua ###
|
### rtc.lua ###
|
||||||
|
|
||||||
Digiline Real Time Clock (RTC)=
|
Digiline Real Time Clock (RTC)=
|
||||||
|
|
||||||
### wire_std.lua ###
|
### wire_std.lua ###
|
||||||
|
|
||||||
Digiline=
|
Digiline=
|
||||||
|
1
rtc.lua
1
rtc.lua
@ -51,7 +51,6 @@ minetest.register_node("digilines:rtc", {
|
|||||||
on_receive_fields = function(pos, _, fields, sender)
|
on_receive_fields = function(pos, _, fields, sender)
|
||||||
local name = sender:get_player_name()
|
local name = sender:get_player_name()
|
||||||
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
|
if minetest.is_protected(pos, name) and not minetest.check_player_privs(name, {protection_bypass=true}) then
|
||||||
minetest.record_protection_violation(pos, name)
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if (fields.channel) then
|
if (fields.channel) then
|
||||||
|
Loading…
Reference in New Issue
Block a user