summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorJPG <jeanpatrick.guerrero@gmail.com>2016-12-16 14:57:45 +0100
committerJPG <jeanpatrick.guerrero@gmail.com>2016-12-16 15:00:10 +0100
commit7f038737a0a942d067376b1beb8a01ea79e7b25f (patch)
tree03958b311b58e0faa7fdbb86c66912749f75a325 /init.lua
parent997b3c59bb93f704975be0b189b62c87f84b3268 (diff)
Fix oversight in previous commit
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 5a4f215..330b9a3 100644
--- a/init.lua
+++ b/init.lua
@@ -282,8 +282,11 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
else for item in pairs(fields) do
if not item:find(":") then return end
if item:sub(-4) == "_inv" then item = item:sub(1,-5) end
- local recipes = minetest.get_all_craft_recipes(item)
- if not recipes then return end
+
+ local recipes = minetest.get_all_craft_recipes(item)
+ local is_fuel = minetest.get_craft_result({
+ method="fuel", width=1, items={item}}).time == 0
+ if not recipes and is_fuel then return end
if progressive_mode then
local _, player_has_item =