Adding timer for look how many time need for load
This commit is contained in:
parent
c6c2607e23
commit
15256967eb
17 changed files with 272 additions and 37 deletions
|
@ -1,5 +1,5 @@
|
|||
-- minetest/fire/init.lua
|
||||
|
||||
local init = os.clock()
|
||||
minetest.register_node("fire:basic_flame", {
|
||||
description = "Fire",
|
||||
drawtype = "plantlike",
|
||||
|
@ -156,6 +156,7 @@ minetest.register_abm({
|
|||
chance = 2,
|
||||
action = function(p0, node, _, _)
|
||||
-- If there is water or stuff like that around flame, remove flame
|
||||
|
||||
if fire.flame_should_extinguish(p0) then
|
||||
minetest.remove_node(p0)
|
||||
fire.on_flame_remove_at(p0)
|
||||
|
@ -190,3 +191,7 @@ minetest.register_abm({
|
|||
end,
|
||||
})
|
||||
|
||||
local time_to_load= os.clock() - init
|
||||
print(string.format("[MOD] "..minetest.get_current_modname().." loaded in %.4f s", time_to_load))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue