mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-22 06:33:44 +01:00
Do not omit last inventory slot
This commit is contained in:
parent
26d9066f76
commit
4e99f7db71
@ -170,7 +170,7 @@ core.register_entity("drawers:visual", {
|
|||||||
local i = 0
|
local i = 0
|
||||||
local inv = clicker:get_inventory()
|
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
|
-- set current stack to leftover of insertion
|
||||||
local leftover = self.try_insert_stack(
|
local leftover = self.try_insert_stack(
|
||||||
self,
|
self,
|
||||||
|
Loading…
Reference in New Issue
Block a user