mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-14 02:30: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
|
data.pagenum = data.pagemax
|
||||||
end
|
end
|
||||||
craftguide:get_formspec(player_name)
|
craftguide:get_formspec(player_name)
|
||||||
elseif next(fields):find(":") then
|
else
|
||||||
local item = next(fields)
|
for item,_ in pairs(fields) do
|
||||||
|
if item:find(":") then
|
||||||
if item:sub(-4) == "_inv" then
|
if item:sub(-4) == "_inv" then
|
||||||
item = item:sub(1,-5)
|
item = item:sub(1,-5)
|
||||||
end
|
end
|
||||||
@ -360,6 +361,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
data.recipes_item = recipes
|
data.recipes_item = recipes
|
||||||
craftguide:get_formspec(player_name, is_fuel)
|
craftguide:get_formspec(player_name, is_fuel)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_craftitem("craftguide:book", {
|
minetest.register_craftitem("craftguide:book", {
|
||||||
|
Loading…
Reference in New Issue
Block a user