mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-23 07:10:19 +01:00
creative: Override hand after mods loaded... (#2984)
Prevents other mods from overwriting changes & removes dependence on default.
This commit is contained in:
parent
97130f4c1c
commit
fdcf458b56
@ -46,6 +46,7 @@ end
|
|||||||
dofile(minetest.get_modpath("creative") .. "/inventory.lua")
|
dofile(minetest.get_modpath("creative") .. "/inventory.lua")
|
||||||
|
|
||||||
if minetest.is_creative_enabled("") then
|
if minetest.is_creative_enabled("") then
|
||||||
|
minetest.register_on_mods_loaded(function()
|
||||||
-- Dig time is modified according to difference (leveldiff) between tool
|
-- Dig time is modified according to difference (leveldiff) between tool
|
||||||
-- 'maxlevel' and node 'level'. Digtime is divided by the larger of
|
-- 'maxlevel' and node 'level'. Digtime is divided by the larger of
|
||||||
-- leveldiff and 1.
|
-- leveldiff and 1.
|
||||||
@ -74,6 +75,7 @@ if minetest.is_creative_enabled("") then
|
|||||||
damage_groups = {fleshy = 10},
|
damage_groups = {fleshy = 10},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Unlimited node placement
|
-- Unlimited node placement
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
name = creative
|
name = creative
|
||||||
description = Minetest Game mod: creative
|
description = Minetest Game mod: creative
|
||||||
depends = sfinv
|
depends = sfinv
|
||||||
optional_depends = default
|
|
||||||
|
Loading…
Reference in New Issue
Block a user