X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=builtin%2Fbuiltin.lua;h=99242f3d292eed79bf9232edb28ee1191a428e52;hb=6cbd1b8bf739e0d776ee508708b5076b491fb638;hp=f2811fa9c4cc00dbaf71795bde331f293c8dae48;hpb=3cab24fbcfbbeb12cdd9f085167969e1a934bd59;p=dragonfireclient.git diff --git a/builtin/builtin.lua b/builtin/builtin.lua index f2811fa9c..99242f3d2 100644 --- a/builtin/builtin.lua +++ b/builtin/builtin.lua @@ -8,19 +8,29 @@ -- Initialize some very basic things print = minetest.debug math.randomseed(os.time()) +os.setlocale("C", "numeric") --- Load other files -dofile(minetest.get_modpath("__builtin").."/serialize.lua") -dofile(minetest.get_modpath("__builtin").."/misc_helpers.lua") -dofile(minetest.get_modpath("__builtin").."/item.lua") -dofile(minetest.get_modpath("__builtin").."/misc_register.lua") -dofile(minetest.get_modpath("__builtin").."/item_entity.lua") -dofile(minetest.get_modpath("__builtin").."/deprecated.lua") -dofile(minetest.get_modpath("__builtin").."/misc.lua") -dofile(minetest.get_modpath("__builtin").."/privileges.lua") -dofile(minetest.get_modpath("__builtin").."/auth.lua") -dofile(minetest.get_modpath("__builtin").."/chatcommands.lua") -dofile(minetest.get_modpath("__builtin").."/static_spawn.lua") -dofile(minetest.get_modpath("__builtin").."/detached_inventory.lua") -dofile(minetest.get_modpath("__builtin").."/falling.lua") +local errorfct = error +error = function(text) + print(debug.traceback("")) + errorfct(text) +end +-- 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")