mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-14 02:30:17 +01:00
Fix minor error
This commit is contained in:
parent
a74de97c87
commit
25f4b5d3f1
4
init.lua
4
init.lua
@ -230,8 +230,8 @@ function craftguide:get_items(player_name)
|
|||||||
|
|
||||||
table.sort(items_list)
|
table.sort(items_list)
|
||||||
data.items = items_list
|
data.items = items_list
|
||||||
data.size = list_size
|
data.size = list_size or 0
|
||||||
data.pagemax = max(1, ceil(list_size / ipp))
|
data.pagemax = max(1, ceil(data.size / ipp))
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
|
Loading…
Reference in New Issue
Block a user