Industrial Foregoing

Industrial Foregoing

95M Downloads

[1.11] Your item handler is incorrect

thiakil opened this issue ยท 7 comments

commented

com.buuz135.industrial.tile.misc.BlackHoleControllerTile.BlackHoleControllerHandler.getSlots should be returning how many slots the inventory has, not the counts of the items within!

public interface IItemHandler
{
    /**
     * Returns the number of slots available
     *
     * @return The number of slots available
     **/
    int getSlots();
commented

Black Hole controller provides that number to make available all the items provided by the black hole units.

commented

See the javadoc comment I quoted; the purpose of the function is to determine the number of slots, not items

commented

Im not counting the items, The Black Hole Controller holds Black Hole Units (BHU) that have stored in the NBT a max Integer.MAX_INT of items. My getSlots() gets the number of items of each BHU and divides it with it stackSize to simulate how many slot would have.

commented

That's another thing that could happen.

commented

Yes it is . As I add extra slots as a buffer the last slots will throw an error.