Set variables 'sneaker.modname' & 'sneaker.modpath'

This commit is contained in:
AntumDeluge 2017-05-27 17:26:42 -07:00 committed by Jordan Irwin
parent 58ac8ed83c
commit d9602eef55

@ -1,12 +1,15 @@
sneaker = {}
sneaker.modname = minetest.get_current_modname()
sneaker.modpath = minetest.get_modpath(sneaker.modname)
--[[
-- DISABLED!!!
do return end
--]]
local scripts = {
"tnt_function",
"spawn",
}
dofile(minetest.get_modpath("sneaker").."/tnt_function.lua")
dofile(minetest.get_modpath("sneaker").."/spawn.lua")
for I in pairs(scripts) do
dofile(sneaker.modpath .. "/" .. scripts[I] .. ".lua")
end
local function jump(self,pos,direction)
local velocity = self.object:get_velocity()