mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
Move minetest.rotate_node override to a pre-default _misc init
This commit is contained in:
parent
947b301456
commit
a61cd3bc3d
9
minetestforfun_game/mods/_misc_init/init.lua
Executable file
9
minetestforfun_game/mods/_misc_init/init.lua
Executable file
@ -0,0 +1,9 @@
|
||||
----------------------------------------
|
||||
-- Server Misc Mod - pre-default init --
|
||||
----------------------------------------
|
||||
|
||||
local cwd = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
-- Inventory refill function override
|
||||
-- see https://github.com/MinetestForFun/server-minetestforfun/issues/462
|
||||
dofile(cwd.."/inventory_rotate_node.lua")
|
@ -19,4 +19,4 @@ function minetest.rotate_node(itemstack, placer, pointed_thing)
|
||||
end
|
||||
end
|
||||
return ret
|
||||
end
|
||||
end
|
1
minetestforfun_game/mods/default/depends.txt
Normal file
1
minetestforfun_game/mods/default/depends.txt
Normal file
@ -0,0 +1 @@
|
||||
_misc_init?
|
@ -9,10 +9,6 @@ dofile(cwd.."/carbone_init.lua")
|
||||
dofile(cwd.."/commands.lua")
|
||||
dofile(cwd.."/forbid_underwater_torch.lua")
|
||||
|
||||
-- Inventory refill function override
|
||||
-- see https://github.com/MinetestForFun/server-minetestforfun/issues/462
|
||||
dofile(cwd.."/inventory_rotate_node.lua")
|
||||
|
||||
-- Give initial stuff
|
||||
dofile(cwd.."/give_initial_stuff.lua")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user