mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
e3bdd7b2ed
This reverts commit 5b518ed2feff28c9bf21ad940c1b211b72d71bd1. This caused duplicate tracebacks and tracebacks when unwanted. It also ignored the level argument to error() and didn't pass the message (or level) to debug.traceback(). Use xpcall() or lua_pcall()'s errorhandler argument instead.
32 lines
961 B
Lua
32 lines
961 B
Lua
--
|
|
-- 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.
|
|
--
|
|
|
|
-- Initialize some very basic things
|
|
print = minetest.debug
|
|
math.randomseed(os.time())
|
|
os.setlocale("C", "numeric")
|
|
|
|
-- Load other files
|
|
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")
|
|
dofile(modpath.."/forceloading.lua")
|