mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-01 11:30:03 -04:00
Changed sethome namespace messing with positions, checked other namespaces
This commit is contained in:
parent
077f62dba4
commit
2dbee8123e
8 changed files with 15 additions and 7 deletions
|
@ -3,6 +3,7 @@ beds.player = {}
|
|||
beds.pos = {}
|
||||
beds.spawn = {}
|
||||
|
||||
-- Intllib
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
-- Intllib
|
||||
boats = {}
|
||||
|
||||
local S
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
bones = {}
|
||||
|
||||
-- Intllib
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
|
|
|
@ -16,6 +16,7 @@ minetest.register_craft({
|
|||
bucket = {}
|
||||
bucket.liquids = {}
|
||||
|
||||
-- Intllib
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
doors = {}
|
||||
|
||||
-- Intllib
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
|
|
|
@ -2,7 +2,13 @@
|
|||
|
||||
-- Other mods can use these for looping through available colors
|
||||
dye = {}
|
||||
dye.basecolors = {"white", "grey", "black", "red", "yellow", "green", "cyan", "blue", "magenta"}
|
||||
dye.excolors = {"white", "lightgrey", "grey", "darkgrey", "black", "red", "orange", "yellow", "lime", "green", "aqua", "cyan", "sky_blue", "blue", "violet", "magenta", "red_violet"}
|
||||
|
||||
-- Local stuff
|
||||
local dyelocal = {}
|
||||
|
||||
-- Intllib
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
|
@ -11,12 +17,6 @@ else
|
|||
end
|
||||
dye.intllib = S
|
||||
|
||||
dye.basecolors = {"white", "grey", "black", "red", "yellow", "green", "cyan", "blue", "magenta"}
|
||||
dye.excolors = {"white", "lightgrey", "grey", "darkgrey", "black", "red", "orange", "yellow", "lime", "green", "aqua", "cyan", "sky_blue", "blue", "violet", "magenta", "red_violet"}
|
||||
|
||||
-- Local stuff
|
||||
local dyelocal = {}
|
||||
|
||||
-- This collection of colors is partly a historic thing, partly something else.
|
||||
dyelocal.dyes = {
|
||||
{"white", S("White dye"), {dye=1, basecolor_white=1, excolor_white=1, unicolor_white=1}},
|
||||
|
|
|
@ -2,13 +2,15 @@ local homes_file = minetest.get_worldpath() .. "/homes"
|
|||
local homepos = {}
|
||||
|
||||
-- Intllib
|
||||
sethome = {}
|
||||
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
homepos.intllib = S
|
||||
sethome.intllib = S
|
||||
|
||||
local function loadhomes()
|
||||
local input = io.open(homes_file, "r")
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
-- Intllib
|
||||
vessels = {}
|
||||
|
||||
local S
|
||||
if minetest.get_modpath("intllib") then
|
||||
S = intllib.Getter()
|
||||
|
|
Loading…
Add table
Reference in a new issue