mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-30 23:15:32 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			1019 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1019 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")
 | |
| 
 | |
| 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")
 |