Skip to content

Commit

Permalink
renames
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Mar 19, 2024
1 parent 5e50d59 commit d923aac
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ public void checkStructurePattern() {
this.setFlipped(context.neededFlip());
parts.sort(Comparator.comparing(it -> multiblockPartSorter().apply(((MetaTileEntity) it).getPos())));
Map<MultiblockAbility<Object>, List<Object>> abilities = new HashMap<>();
for (IMultiblockPart multiblockPart : parts) {
if (multiblockPart instanceof IMultiblockAbilityPart multiblockAbilityPart) {
List<MultiblockAbility> m = multiblockAbilityPart.getAbilities();
for (MultiblockAbility ability : m) {
for (IMultiblockPart part : parts) {
if (part instanceof IMultiblockAbilityPart abilityPart) {
List<MultiblockAbility> abilityList = abilityPart.getAbilities();
for (MultiblockAbility ability : abilityList) {
List abilityInstancesList = abilities.computeIfAbsent(ability,
k -> new ArrayList<>());
abilityInstancesList.addAll(multiblockAbilityPart.registerAbilities(ability));
abilityInstancesList.addAll(abilityPart.registerAbilities(ability));
}
}
}
Expand Down

0 comments on commit d923aac

Please sign in to comment.