1
0
Fork 0

fix many warnings

doc-refactoring^2
AFCMS 2021-05-22 19:58:09 +02:00
parent fb60bd0253
commit 84a800f22b
8 changed files with 3 additions and 20 deletions

View File

@ -1,4 +1,4 @@
local S = minetest.get_translator("mcl_hunger") --local S = minetest.get_translator("mcl_hunger")
-- wrapper for minetest.item_eat (this way we make sure other mods can't break this one) -- wrapper for minetest.item_eat (this way we make sure other mods can't break this one)
minetest.do_item_eat = function(hp_change, replace_with_item, itemstack, user, pointed_thing) minetest.do_item_eat = function(hp_change, replace_with_item, itemstack, user, pointed_thing)

View File

@ -1,5 +1,3 @@
local S = minetest.get_translator("mcl_playerplus")
mcl_playerplus = { mcl_playerplus = {
elytra = {}, elytra = {},
} }

View File

@ -1,3 +0,0 @@
# textdomain: mcl_playerplus
@1 suffocated to death.=@1 erstickte zu Tode.
@1 was prickled to death by a cactus.=@1 wurde von einem Kaktus zu Tode gepiekst.

View File

@ -1,3 +0,0 @@
# textdomain: mcl_playerplus
@1 suffocated to death.=@1 ahogado hasta la muerte.
@1 was prickled to death by a cactus.=@1 fue herido de muerte por un cactus.

View File

@ -1,3 +0,0 @@
# textdomain: mcl_playerplus
@1 suffocated to death.=@1 étouffé à mort.
@1 was prickled to death by a cactus.=@1 a été piqué à mort par un cactus.

View File

@ -1,3 +0,0 @@
# textdomain: mcl_playerplus
@1 suffocated to death.=@1 задохнулся(ась).
@1 was prickled to death by a cactus.=@1 был(а) до смерти заколот(а) кактусом.

View File

@ -1,3 +0,0 @@
# textdomain: mcl_playerplus
@1 suffocated to death.=
@1 was prickled to death by a cactus.=

View File

@ -87,7 +87,7 @@ mcl_skins.set_player_skin = function(player, skin_id)
return false return false
end end
local playername = player:get_player_name() local playername = player:get_player_name()
local skin, skin_file, preview local skin, preview
if skin_id == nil or type(skin_id) ~= "number" or skin_id < 0 or skin_id > mcl_skins.skin_count then if skin_id == nil or type(skin_id) ~= "number" or skin_id < 0 or skin_id > mcl_skins.skin_count then
return false return false
elseif skin_id == 0 then elseif skin_id == 0 then
@ -109,7 +109,7 @@ mcl_skins.set_player_skin = function(player, skin_id)
preview = "mcl_skins_player_dummy" preview = "mcl_skins_player_dummy"
end end
end end
skin_file = skin .. ".png" --local skin_file = skin .. ".png"
mcl_skins.skins[playername] = skin mcl_skins.skins[playername] = skin
mcl_skins.previews[playername] = preview mcl_skins.previews[playername] = preview
player:get_meta():set_string("mcl_skins:skin_id", tostring(skin_id)) player:get_meta():set_string("mcl_skins:skin_id", tostring(skin_id))