MCJack123 / craftos2

A fast, modern, and feature-filled ComputerCraft emulator written in C++.
https://www.craftos-pc.cc
Other
217 stars 25 forks source link

Chest Inventory peripheral list returns entries for empty slots #340

Closed 9551-Dev closed 3 months ago

9551-Dev commented 5 months ago

Describe the bug Inventory peripheral list returning entries for empty slots

To Reproduce Steps to reproduce the behavior:

attach top chest
lua
peripheral.wrap("top").setItem(2,{name="e",count=50})
peripherla.wrap("top").list()

Expected behavior Slots with no items (probably could just be detected by the 0 count) should be nil in the returned table

Screenshots image

Environment (please complete the following information):