mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-12-27 00:59:23 +01:00
parent
7a44dc50ca
commit
4a49e2518e
1 changed files with 2 additions and 3 deletions
|
@ -339,9 +339,8 @@ public class PipeBlockEntity extends BlockEntity implements MenuProvider, IPipeC
|
|||
Stream.Builder<Pair<ItemStack, IModule>> builder = Stream.builder();
|
||||
for (var i = 0; i < this.modules.getSlots(); i++) {
|
||||
var stack = this.modules.getStackInSlot(i);
|
||||
if (stack.isEmpty())
|
||||
continue;
|
||||
builder.accept(Pair.of(stack, (IModule) stack.getItem()));
|
||||
if (!stack.isEmpty() && stack.getItem() instanceof IModule module)
|
||||
builder.accept(Pair.of(stack, module));
|
||||
}
|
||||
return builder.build();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue