Create

Create

86M Downloads

Can store 2147483647 items in a Depot under certain circumstances.

TheDrOfDoctoring opened this issue ยท 0 comments

commented

Describe the Bug

Some methods of pushing items into a depot can result in the depot storing huge amounts of items. The way I discovered is through a computer from Computercraft. This can be used with a storage drawer for example to push items from the storage drawer into the depot at once. This could possibly be done through other methods, but I'm not sure of any specifically. Notably, it doesn't work unless the items are pushed into the depot all at once, it will work normally

Reproduction Steps

  1. Setup a computer from Computercraft with a wired modem connected to the depot and some other inventory.
  2. Give a storage drawer the vending upgrade or otherwise fill it with a large amount of items
  3. Enter lua mode (by typing lua into the computer) or use some other script to wrap the depot and the other inventory (Peripheral.wrap())
    for example drawer = peripheral.wrap("storagedrawers:standard_drawers_1_0"),
    depot = peripheral.wrap("create:depot_0")
  4. Push items into the inventory with drawer.pushItems(peripheral.getName(depot), slot). The slot will be 2 for a storagedrawer's drawer.
  5. The depot should now be filled with as many of the item as the drawer is filled with

Expected Result

The depot should only be able to store the typical amount of items

Screenshots and Videos

Example of Bug

Crash Report or Log

No response

Operating System

Linux Mint

Mod Version

0.5.1f

Minecraft Version

1.20.1

Forge Version

Neoforge 47.1.106

Other Mods

No response

Additional Context

The bug appears to exist since 1.16.5, as I initially discovered it on that version.