Changed sethome namespace messing with positions, checked other namespaces

This commit is contained in:
Adimgar 2015-05-16 17:39:45 -06:00
parent 077f62dba4
commit 2dbee8123e
8 changed files with 15 additions and 7 deletions

View file

@ -3,6 +3,7 @@ beds.player = {}
beds.pos = {}
beds.spawn = {}
-- Intllib
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()

View file

@ -1,3 +1,4 @@
-- Intllib
boats = {}
local S

View file

@ -3,6 +3,7 @@
bones = {}
-- Intllib
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()

View file

@ -16,6 +16,7 @@ minetest.register_craft({
bucket = {}
bucket.liquids = {}
-- Intllib
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()

View file

@ -1,5 +1,6 @@
doors = {}
-- Intllib
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()

View file

@ -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}},

View file

@ -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")

View file

@ -3,6 +3,7 @@
-- Intllib
vessels = {}
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()