mirror of
https://github.com/SmallJoker/exchange_shop.git
synced 2025-07-24 02:50:19 +02:00
Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev
This commit is contained in:
10
init.lua
10
init.lua
@ -1,3 +1,7 @@
|
||||
if not minetest.get_translator then
|
||||
error("exchange_shop requires at least Minetest 5.0.0-dev.")
|
||||
end
|
||||
|
||||
exchange_shop = {}
|
||||
exchange_shop.storage_size = 5 * 4
|
||||
exchange_shop.shopname = "exchange_shop:shop"
|
||||
@ -6,6 +10,12 @@ local modpath = minetest.get_modpath("exchange_shop")
|
||||
local has_currency = minetest.get_modpath("currency")
|
||||
local has_bitchange = minetest.get_modpath("bitchange")
|
||||
|
||||
-- Internationalisaton
|
||||
exchange_shop.S = minetest.get_translator("exchange_shop")
|
||||
exchange_shop.FS = function(...)
|
||||
return minetest.formspec_escape(exchange_shop.S(...))
|
||||
end
|
||||
|
||||
-- Currency migrate options
|
||||
exchange_shop.migrate = {
|
||||
use_lbm = false,
|
||||
|
Reference in New Issue
Block a user