Commit 0de6c79b authored by Fedja Beader's avatar Fedja Beader
Browse files

biofuel: add clear command

parent 3b546346
......@@ -321,7 +321,15 @@ core.register_chatcommand("biofuel", {
func = function(param)
local args = string.split(param, ' ')
if args[1] == "reg" then
if args[1] == "clear" then
biofuel.enable = false
biofuel.wood_name = nil
biofuel.canister_crafters = {}
biofuel.stick_crafters = {}
biofuel.wood_crafters = {}
biofuel.refineries = {}
elseif args[1] == "reg" then
l:info("punch autocrafters/refineries to add them")
wait_for_punch = true
elseif args[1] == "unreg" then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment