1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-27 23:10:33 +02:00

Move minetest.rotate_node override to a pre-default _misc init

This commit is contained in:
Dorian Wouters 2016-08-14 15:11:40 +02:00
parent 947b301456
commit a61cd3bc3d
No known key found for this signature in database
GPG Key ID: 6E9DA8063322434B
4 changed files with 11 additions and 5 deletions

View 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")

View File

@ -19,4 +19,4 @@ function minetest.rotate_node(itemstack, placer, pointed_thing)
end
end
return ret
end
end

View File

@ -0,0 +1 @@
_misc_init?

View File

@ -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")