mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-25 21:18:34 +01:00
parent
c4fde68c3c
commit
b53affa30c
1 changed files with 2 additions and 3 deletions
|
@ -338,9 +338,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