emeraldbank/init.lua
Nathaniel Freeman 6d4dbba152 income update
2021-10-13 14:23:24 +02:00

44 lines
1.3 KiB
Lua

-- Copyright (C) 2021 Sandro Del Toro De Ana
-- This file is part of Emeraldbank Minetest Mod.
-- Emeraldbank is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
-- Emeraldbank is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License
-- along with Emeraldbank. If not, see <https://www.gnu.org/licenses/>.
local modpath = core.get_modpath(core.get_current_modname())
emeraldbank = {}
emeraldbank.player_inv = "list[current_player;main;0,4.5;9,3;9]"..
mcl_formspec.get_itemslot_bg(0,4.5,9,3)..
"list[current_player;main;0,7.74;9,1;]"..
mcl_formspec.get_itemslot_bg(0,7.74,9,1)..
"listring[current_player;main]"
local income_enabled = core.settings:get_bool("emeraldbank.income_enabled", true)
if income_enabled then
dofile(modpath .. "/income.lua")
end
dofile(modpath .. "/bank.lua")
dofile(modpath .. "/shop.lua")
dofile(modpath .. "/commands.lua")