mirror of
https://github.com/SmallJoker/exchange_shop.git
synced 2025-07-05 01:30:29 +02:00
First version 🐈
This commit is contained in:
27
init.lua
Normal file
27
init.lua
Normal file
@ -0,0 +1,27 @@
|
||||
exchange_shop = {}
|
||||
exchange_shop.storage_size = 5 * 4
|
||||
exchange_shop.shopname = "exchange_shop:shop"
|
||||
|
||||
local modpath = minetest.get_modpath("exchange_shop")
|
||||
local has_currency = minetest.get_modpath("currency")
|
||||
local has_bitchange = minetest.get_modpath("bitchange")
|
||||
local migrate_currency = true -- TODO testing!
|
||||
local slow_migrate_currency = false
|
||||
|
||||
|
||||
if has_bitchange then
|
||||
minetest.register_alias("exchange_shop:shop", "bitchange:shop")
|
||||
exchange_shop.shopname = "bitchange:shop"
|
||||
else
|
||||
dofile(modpath .. "/shop_functions.lua")
|
||||
dofile(modpath .. "/shop.lua")
|
||||
end
|
||||
|
||||
if has_currency then
|
||||
if migrate_currency then
|
||||
dofile(modpath .. "/currency_migrate.lua")
|
||||
end
|
||||
if slow_migrate_currency then
|
||||
dofile(modpath .. "/currency_override.lua")
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user