mirror of
https://github.com/HybridDog/pdisc.git
synced 2025-06-30 23:30:41 +02:00
💥
A .gitignore A LICENSE.txt A README.md A depends.txt A faden.lua A init.lua A parser.lua A standardbefehlssatz.lua A textures/pdisc.png
This commit is contained in:
19
init.lua
Normal file
19
init.lua
Normal file
@ -0,0 +1,19 @@
|
||||
local load_time_start = minetest.get_us_time()
|
||||
|
||||
|
||||
local mpath = minetest.get_modpath"pdisc" .. "/"
|
||||
|
||||
pdisc = {
|
||||
parse = dofile(mpath .. "parser.lua"),
|
||||
standard_befehlssatz = dofile(mpath .. "standardbefehlssatz.lua"),
|
||||
create_thread = dofile(mpath .. "faden.lua")
|
||||
}
|
||||
|
||||
|
||||
local time = (minetest.get_us_time() - load_time_start) / 1000000
|
||||
local msg = "[pdisc] loaded after ca. " .. time .. " seconds."
|
||||
if time > 0.01 then
|
||||
print(msg)
|
||||
else
|
||||
minetest.log("info", msg)
|
||||
end
|
Reference in New Issue
Block a user