mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-13 18:20:17 +01:00
fix non-showign recipes
This commit is contained in:
parent
d0b3cf2887
commit
a4f9f408ce
7
init.lua
7
init.lua
@ -335,8 +335,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
data.pagenum = data.pagemax
|
||||
end
|
||||
craftguide:get_formspec(player_name)
|
||||
elseif next(fields):find(":") then
|
||||
local item = next(fields)
|
||||
else
|
||||
for item,_ in pairs(fields) do
|
||||
if item:find(":") then
|
||||
if item:sub(-4) == "_inv" then
|
||||
item = item:sub(1,-5)
|
||||
end
|
||||
@ -360,6 +361,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
data.recipes_item = recipes
|
||||
craftguide:get_formspec(player_name, is_fuel)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
minetest.register_craftitem("craftguide:book", {
|
||||
|
Loading…
Reference in New Issue
Block a user