Fixed Controller asking for slots of other Controllers, closes #20
This commit is contained in:
parent
9205549aff
commit
467a9a3e8e
|
@ -13,7 +13,7 @@ public abstract class ControllerInventoryHandler implements IItemHandler {
|
|||
|
||||
@Override
|
||||
public int getSlots() {
|
||||
return getDrawers().getHandlers().stream().map(IItemHandler::getSlots).mapToInt(Integer::intValue).sum();
|
||||
return getDrawers().getHandlers().stream().filter(iItemHandler -> !(iItemHandler instanceof ControllerInventoryHandler)).map(IItemHandler::getSlots).mapToInt(Integer::intValue).sum();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
|
Loading…
Reference in New Issue
Block a user