add item that will reload this mod
This commit is contained in:
parent
1fd42583dd
commit
9e8fabc6a1
11
module.lua
11
module.lua
@ -134,3 +134,14 @@ live.register_on_joinplayer(
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
live.register_tool(
|
||||||
|
MODNAME .. ":reloader",
|
||||||
|
{
|
||||||
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
|
core.chat_send_all("player_dummy reloading...")
|
||||||
|
live.load_module("player_dummy", "module")
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user