Merge remote-tracking branch 'upstream/master'

This commit is contained in:
2020-08-08 10:04:04 +02:00
506 changed files with 7721 additions and 17815 deletions

20
inbox/.luacheckrc Normal file
View File

@ -0,0 +1,20 @@
unused_args = false
allow_defined_top = true
max_comment_line_length = 999
read_globals = {
"DIR_DELIM",
"minetest", "core",
"unpack",
"dump",
table = { fields = { "copy", "getn" } },
"vector", "nodeupdate",
"VoxelManip", "VoxelArea",
"PseudoRandom", "ItemStack",
"default",
"screwdriver",
}
globals = {
}

View File

@ -1,3 +0,0 @@
default
homedecor_common
screwdriver?

View File

@ -1,8 +1,6 @@
local S = homedecor.gettext
local S = minetest.get_translator("inbox")
local inbox = {}
local screwdriver = rawget(_G, "screwdriver") or {}
minetest.register_craft({
output ="inbox:empty",
@ -34,7 +32,7 @@ minetest.register_node("inbox:empty", {
paramtype2 = "facedir",
groups = {choppy=2,oddly_breakable_by_hand=2},
sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.rotate_simple,
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
after_place_node = function(pos, placer, itemstack)
local meta = minetest.get_meta(pos)
local owner = placer:get_player_name()
@ -97,7 +95,7 @@ minetest.register_node("inbox:empty", {
local owner = meta:get_string("owner")
if player:get_player_name() == owner or
minetest.check_player_privs(player, "protection_bypass") and
clicker:get_player_control().aux1 then
player:get_player_control().aux1 then
return stack:get_count()
end
return 0

7
inbox/locale/inbox.de.tr Normal file
View File

@ -0,0 +1,7 @@
# textdomain: inbox
### init.lua ###
@1's Mailbox=Briefkasten von @1
Mailbox=Briefkasten

7
inbox/locale/inbox.es.tr Normal file
View File

@ -0,0 +1,7 @@
# textdomain: inbox
### init.lua ###
@1's Mailbox=Buzón de @1
Mailbox=Buzón

7
inbox/locale/inbox.fr.tr Normal file
View File

@ -0,0 +1,7 @@
# textdomain: inbox
### init.lua ###
@1's Mailbox=Boîte aux lettres de @1
Mailbox=Boîte aux lettres

7
inbox/locale/inbox.ms.tr Normal file
View File

@ -0,0 +1,7 @@
# textdomain: inbox
### init.lua ###
@1's Mailbox=Peti Surat @1
Mailbox=Peti Surat

7
inbox/locale/inbox.pt.tr Normal file
View File

@ -0,0 +1,7 @@
# textdomain: inbox
### init.lua ###
@1's Mailbox=Correio de @1
Mailbox=Correio

View File

@ -0,0 +1,7 @@
# textdomain: inbox
### init.lua ###
@1's Mailbox=Correio de @1
Mailbox=Correio

7
inbox/locale/inbox.ru.tr Normal file
View File

@ -0,0 +1,7 @@
# textdomain: inbox
### init.lua ###
@1's Mailbox=Почтовый ящик @1
Mailbox=Почтовый ящик

View File

@ -0,0 +1,7 @@
# textdomain: inbox
### init.lua ###
@1's Mailbox=@1的邮箱
Mailbox=邮箱

View File

@ -0,0 +1,7 @@
# textdomain: inbox
### init.lua ###
@1's Mailbox=
Mailbox=

3
inbox/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = inbox
depends = default, homedecor_common
optional_depends = screwdriver