mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-11-29 13:53:43 +01:00
Fix oversight in previous commit
This commit is contained in:
parent
997b3c59bb
commit
7f038737a0
5
init.lua
5
init.lua
@ -282,8 +282,11 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
else for item in pairs(fields) do
|
else for item in pairs(fields) do
|
||||||
if not item:find(":") then return end
|
if not item:find(":") then return end
|
||||||
if item:sub(-4) == "_inv" then item = item:sub(1,-5) end
|
if item:sub(-4) == "_inv" then item = item:sub(1,-5) end
|
||||||
|
|
||||||
local recipes = minetest.get_all_craft_recipes(item)
|
local recipes = minetest.get_all_craft_recipes(item)
|
||||||
if not recipes then return end
|
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
|
if progressive_mode then
|
||||||
local _, player_has_item =
|
local _, player_has_item =
|
||||||
|
Loading…
Reference in New Issue
Block a user