Do not omit last inventory slot

This commit is contained in:
Serhiy Zahoriya 2020-01-15 03:20:35 +02:00 committed by LNJ
parent 26d9066f76
commit 4e99f7db71

@ -170,7 +170,7 @@ core.register_entity("drawers:visual", {
local i = 0
local inv = clicker:get_inventory()
while i < inv:get_size("main") do
while i <= inv:get_size("main") do
-- set current stack to leftover of insertion
local leftover = self.try_insert_stack(
self,