forked from mtcontrib/plantlife_modpack
use current intllib API
This commit is contained in:
parent
3472d32f2b
commit
56177e5142
@ -1,12 +1,4 @@
|
|||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
local S = plantslib.intllib
|
||||||
local S
|
|
||||||
if (minetest.get_modpath("intllib")) then
|
|
||||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
|
||||||
S = intllib.Getter(minetest.get_current_modname())
|
|
||||||
else
|
|
||||||
S = function ( s ) return s end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
-- Basket
|
-- Basket
|
||||||
|
|
||||||
|
@ -2,14 +2,8 @@
|
|||||||
-- now maintained by VanessaE
|
-- now maintained by VanessaE
|
||||||
--
|
--
|
||||||
-- License: WTFPL
|
-- License: WTFPL
|
||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
|
||||||
local S
|
local S = plantslib.intllib
|
||||||
if (minetest.get_modpath("intllib")) then
|
|
||||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
|
||||||
S = intllib.Getter(minetest.get_current_modname())
|
|
||||||
else
|
|
||||||
S = function ( s ) return s end
|
|
||||||
end
|
|
||||||
|
|
||||||
bushes_classic = {}
|
bushes_classic = {}
|
||||||
|
|
||||||
|
@ -1,12 +1,4 @@
|
|||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
local S = plantslib.intllib
|
||||||
local S
|
|
||||||
if (minetest.get_modpath("intllib")) then
|
|
||||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
|
||||||
S = intllib.Getter(minetest.get_current_modname())
|
|
||||||
else
|
|
||||||
S = function ( s ) return s end
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
plantlife_bushes = {}
|
plantlife_bushes = {}
|
||||||
|
|
||||||
|
@ -1 +1,2 @@
|
|||||||
plants_lib
|
plants_lib
|
||||||
|
|
||||||
|
@ -1,11 +1,4 @@
|
|||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
local S = plantslib.intllib
|
||||||
local S
|
|
||||||
if (minetest.get_modpath("intllib")) then
|
|
||||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
|
||||||
S = intllib.Getter(minetest.get_current_modname())
|
|
||||||
else
|
|
||||||
S = function ( s ) return s end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- This file supplies a few additional plants and some related crafts
|
-- This file supplies a few additional plants and some related crafts
|
||||||
-- for the plantlife modpack. Last revision: 2013-04-24
|
-- for the plantlife modpack. Last revision: 2013-04-24
|
||||||
|
@ -1 +1,3 @@
|
|||||||
default
|
default
|
||||||
|
intllib?
|
||||||
|
|
||||||
|
@ -26,17 +26,17 @@ plantslib.actionslist_aircheck = {}
|
|||||||
plantslib.actionslist_no_aircheck = {}
|
plantslib.actionslist_no_aircheck = {}
|
||||||
|
|
||||||
plantslib.modpath = minetest.get_modpath("plants_lib")
|
plantslib.modpath = minetest.get_modpath("plants_lib")
|
||||||
plantslib.intllib_modpath = minetest.get_modpath("intllib")
|
|
||||||
|
|
||||||
plantslib.total_no_aircheck_calls = 0
|
plantslib.total_no_aircheck_calls = 0
|
||||||
|
|
||||||
|
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||||
local S
|
local S
|
||||||
if plantslib.intllib_modpath then
|
if minetest.get_modpath("intllib") then
|
||||||
dofile(plantslib.intllib_modpath.."/intllib.lua")
|
S = intllib.Getter()
|
||||||
S = intllib.Getter(minetest.get_current_modname())
|
|
||||||
else
|
else
|
||||||
S = function ( s ) return s end
|
S = function(s) return s end
|
||||||
end
|
end
|
||||||
|
plantslib.intllib = S
|
||||||
|
|
||||||
local DEBUG = false --... except if you want to spam the console with debugging info :-)
|
local DEBUG = false --... except if you want to spam the console with debugging info :-)
|
||||||
|
|
||||||
|
@ -1 +1,2 @@
|
|||||||
plants_lib
|
plants_lib
|
||||||
|
|
||||||
|
@ -1,14 +1,7 @@
|
|||||||
-- This file supplies poison ivy for the plantlife modpack
|
-- This file supplies poison ivy for the plantlife modpack
|
||||||
-- Last revision: 2013-01-24
|
-- Last revision: 2013-01-24
|
||||||
|
|
||||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
local S = plantslib.intllib
|
||||||
local S
|
|
||||||
if (minetest.get_modpath("intllib")) then
|
|
||||||
dofile(minetest.get_modpath("intllib").."/intllib.lua")
|
|
||||||
S = intllib.Getter(minetest.get_current_modname())
|
|
||||||
else
|
|
||||||
S = function ( s ) return s end
|
|
||||||
end
|
|
||||||
|
|
||||||
local SPAWN_DELAY = 1000
|
local SPAWN_DELAY = 1000
|
||||||
local SPAWN_CHANCE = 200
|
local SPAWN_CHANCE = 200
|
||||||
|
Loading…
Reference in New Issue
Block a user