Skip to content

Commit 7ba7e72

Browse files
committed
Make use of the accessible hatch types on the flags
1 parent ec75719 commit 7ba7e72

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/aztech/modern_industrialization/guidebook/MultiblockShapeCompiler.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
import aztech.modern_industrialization.MIText;
2727
import aztech.modern_industrialization.machines.MachineBlock;
28-
import aztech.modern_industrialization.machines.multiblocks.HatchTypes;
2928
import aztech.modern_industrialization.machines.multiblocks.MultiblockMachineBlockEntity;
3029
import guideme.color.SymbolicColor;
3130
import guideme.compiler.PageCompiler;
@@ -83,10 +82,8 @@ public void compile(GuidebookScene scene, PageCompiler compiler, LytErrorSink er
8382

8483
tooltipLines.add(MIText.AcceptsHatches.text());
8584
var flags = entry.getValue();
86-
for (var type : HatchTypes.values()) {
87-
if (flags.allows(type)) {
88-
tooltipLines.add(Component.literal("- ").append(type.description()));
89-
}
85+
for (var type : flags.values()) {
86+
tooltipLines.add(Component.literal("- ").append(type.description()));
9087
}
9188
annotation.setTooltip(new TextTooltip(tooltipLines));
9289
scene.addAnnotation(annotation);

0 commit comments

Comments
 (0)