mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-02 20:10:04 -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.pos = {}
|
||||||
beds.spawn = {}
|
beds.spawn = {}
|
||||||
|
|
||||||
|
-- Intllib
|
||||||
local S
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.get_modpath("intllib") then
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
-- Intllib
|
||||||
boats = {}
|
boats = {}
|
||||||
|
|
||||||
local S
|
local S
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
bones = {}
|
bones = {}
|
||||||
|
|
||||||
|
-- Intllib
|
||||||
local S
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.get_modpath("intllib") then
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
|
|
|
@ -16,6 +16,7 @@ minetest.register_craft({
|
||||||
bucket = {}
|
bucket = {}
|
||||||
bucket.liquids = {}
|
bucket.liquids = {}
|
||||||
|
|
||||||
|
-- Intllib
|
||||||
local S
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.get_modpath("intllib") then
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
doors = {}
|
doors = {}
|
||||||
|
|
||||||
|
-- Intllib
|
||||||
local S
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.get_modpath("intllib") then
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
|
|
|
@ -2,7 +2,13 @@
|
||||||
|
|
||||||
-- Other mods can use these for looping through available colors
|
-- Other mods can use these for looping through available colors
|
||||||
dye = {}
|
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
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.get_modpath("intllib") then
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
|
@ -11,12 +17,6 @@ else
|
||||||
end
|
end
|
||||||
dye.intllib = S
|
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.
|
-- This collection of colors is partly a historic thing, partly something else.
|
||||||
dyelocal.dyes = {
|
dyelocal.dyes = {
|
||||||
{"white", S("White dye"), {dye=1, basecolor_white=1, excolor_white=1, unicolor_white=1}},
|
{"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 = {}
|
local homepos = {}
|
||||||
|
|
||||||
-- Intllib
|
-- Intllib
|
||||||
|
sethome = {}
|
||||||
|
|
||||||
local S
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.get_modpath("intllib") then
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
else
|
else
|
||||||
S = function(s) return s end
|
S = function(s) return s end
|
||||||
end
|
end
|
||||||
homepos.intllib = S
|
sethome.intllib = S
|
||||||
|
|
||||||
local function loadhomes()
|
local function loadhomes()
|
||||||
local input = io.open(homes_file, "r")
|
local input = io.open(homes_file, "r")
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
-- Intllib
|
-- Intllib
|
||||||
vessels = {}
|
vessels = {}
|
||||||
|
|
||||||
local S
|
local S
|
||||||
if minetest.get_modpath("intllib") then
|
if minetest.get_modpath("intllib") then
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
|
|
Loading…
Add table
Reference in a new issue