mirror of
https://github.com/theFox6/microexpansion.git
synced 2024-11-29 18:33:51 +01:00
Be sure to reset the size as it changes.
This commit is contained in:
parent
9e07d19b22
commit
3c91acd158
@ -745,6 +745,7 @@ me.register_node("cterminal", {
|
|||||||
tab[#tab + 1] = ItemStack(name)
|
tab[#tab + 1] = ItemStack(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
own_inv:set_size(inv_name, #tab)
|
||||||
own_inv:set_list(inv_name, tab)
|
own_inv:set_list(inv_name, tab)
|
||||||
meta:set_string("inv_name", inv_name)
|
meta:set_string("inv_name", inv_name)
|
||||||
page_max = math.floor(own_inv:get_size(inv_name) / 32) + 1
|
page_max = math.floor(own_inv:get_size(inv_name) / 32) + 1
|
||||||
@ -772,6 +773,7 @@ me.register_node("cterminal", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
inv_name = "search"
|
inv_name = "search"
|
||||||
|
own_inv:set_size(inv_name, #tab)
|
||||||
own_inv:set_list(inv_name, tab)
|
own_inv:set_list(inv_name, tab)
|
||||||
meta:set_string("inv_name", inv_name)
|
meta:set_string("inv_name", inv_name)
|
||||||
page_max = math.floor(own_inv:get_size(inv_name) / 32) + 1
|
page_max = math.floor(own_inv:get_size(inv_name) / 32) + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user