2011-11-30 22:52:02 +01:00
|
|
|
--
|
|
|
|
-- This file contains built-in stuff in Minetest implemented in Lua.
|
|
|
|
--
|
|
|
|
-- It is always loaded and executed after registration of the C API,
|
|
|
|
-- before loading and running any mods.
|
|
|
|
--
|
|
|
|
|
2012-04-01 11:37:41 +02:00
|
|
|
-- Initialize some very basic things
|
2012-03-11 14:41:53 +01:00
|
|
|
print = minetest.debug
|
2012-01-21 00:11:44 +01:00
|
|
|
math.randomseed(os.time())
|
2013-02-18 10:58:55 +01:00
|
|
|
os.setlocale("C", "numeric")
|
2012-01-21 00:11:44 +01:00
|
|
|
|
2013-08-25 12:54:16 +02:00
|
|
|
local errorfct = error
|
|
|
|
error = function(text)
|
|
|
|
print(debug.traceback(""))
|
|
|
|
errorfct(text)
|
|
|
|
end
|
|
|
|
|
2012-04-01 11:37:41 +02:00
|
|
|
-- Load other files
|
2013-07-07 07:44:33 +02:00
|
|
|
local modpath = minetest.get_modpath("__builtin")
|
|
|
|
dofile(modpath.."/serialize.lua")
|
|
|
|
dofile(modpath.."/misc_helpers.lua")
|
|
|
|
dofile(modpath.."/item.lua")
|
|
|
|
dofile(modpath.."/misc_register.lua")
|
|
|
|
dofile(modpath.."/item_entity.lua")
|
|
|
|
dofile(modpath.."/deprecated.lua")
|
|
|
|
dofile(modpath.."/misc.lua")
|
|
|
|
dofile(modpath.."/privileges.lua")
|
|
|
|
dofile(modpath.."/auth.lua")
|
|
|
|
dofile(modpath.."/chatcommands.lua")
|
|
|
|
dofile(modpath.."/static_spawn.lua")
|
|
|
|
dofile(modpath.."/detached_inventory.lua")
|
|
|
|
dofile(modpath.."/falling.lua")
|
|
|
|
dofile(modpath.."/features.lua")
|
|
|
|
dofile(modpath.."/voxelarea.lua")
|
|
|
|
dofile(modpath.."/vector.lua")
|
2014-01-11 17:54:00 +01:00
|
|
|
dofile(modpath.."/forceloading.lua")
|