mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2026-01-02 21:05:19 +01:00
use nondeprecated namespace - minetest to core (#98)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
-- This file adds fences of various types
|
||||
|
||||
local S = minetest.get_translator("homedecor_fences")
|
||||
local S = core.get_translator("homedecor_fences")
|
||||
|
||||
local brass = {
|
||||
output = "homedecor:fence_brass 6",
|
||||
@@ -465,7 +465,7 @@ homedecor.register("fence_wrought_iron_2_corner", {
|
||||
})
|
||||
|
||||
-- insert the old wood signs-on-metal-fences into signs_lib's conversion LBM
|
||||
if minetest.get_modpath("signs_lib") and minetest.get_modpath("default") then
|
||||
if core.get_modpath("signs_lib") and core.get_modpath("default") then
|
||||
-- FIXME: export a function in signs_lib API to allow signs_lib to be read only in .luacheckrc
|
||||
table.insert(signs_lib.old_fenceposts_with_signs, "homedecor:fence_brass_with_sign")
|
||||
signs_lib.old_fenceposts["homedecor:fence_brass_with_sign"] = "homedecor:fence_brass"
|
||||
|
||||
Reference in New Issue
Block a user