1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-15 12:10:25 +02:00

MT5 translation for homedecor_common

- Remove intllib support
- Fix luacheck warnings (except for 1 I don't know what to do)
- Removes homedecor_common/mt_game_beds_functions.lua (we can get the
function directly from `beds` mod instead of using an obsolete copie; I
have not re-enabled bed-sleeping, but it should work)
This commit is contained in:
Louis Royer
2020-08-05 02:36:06 +02:00
parent f0ab7a6c78
commit 1c7ceb2e90
34 changed files with 307 additions and 17060 deletions

View File

@ -6,11 +6,6 @@ local modpath = minetest.get_modpath("homedecor_common")
homedecor = {}
homedecor.modpath = modpath
-- Intllib support
homedecor.gettext, homedecor.ngettext = dofile(modpath.."/intllib.lua")
local S = homedecor.gettext
-- Determine if the item being pointed at is the underside of a node (e.g a ceiling)
function homedecor.find_ceiling(itemstack, placer, pointed_thing)
-- most of this is copied from the rotate-and-place function in builtin
@ -54,8 +49,6 @@ function homedecor.find_ceiling(itemstack, placer, pointed_thing)
return isceiling, pos
end
screwdriver = screwdriver or {}
homedecor.plain_wood = { name = "homedecor_generic_wood_plain.png", color = 0xffa76820 }
homedecor.mahogany_wood = { name = "homedecor_generic_wood_plain.png", color = 0xff7d2506 }
homedecor.white_wood = "homedecor_generic_wood_plain.png"
@ -73,10 +66,9 @@ dofile(modpath.."/furnaces.lua")
dofile(modpath.."/inventory.lua")
dofile(modpath.."/registration.lua")
dofile(modpath.."/water_particles.lua")
dofile(modpath.."/mt_game_beds_functions.lua")
dofile(modpath.."/sit.lua")
dofile(modpath.."/crafts.lua")
if minetest.settings:get_bool("log_mod") then
minetest.log("action", "[HomeDecor API] " .. S("Loaded!"))
minetest.log("action", "[HomeDecor API] Loaded!")
end