Skip to content

Commit

Permalink
DONE.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePlasticPotato committed Dec 29, 2023
1 parent f25af18 commit fc8f75b
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,15 @@ private void postTick(final BooleanSupplier shouldKeepTicking, final CallbackInf
ShipConnDataAttachment connData = loadedShip.getAttachment(ShipConnDataAttachment.class);
assert connData != null;
HashSet<Object> shipBreakages = (HashSet<Object>) connData.getBreakages();
for (Object breakage : shipBreakages) {
Iterator<Object> breakageIterator = shipBreakages.iterator();

while (breakageIterator.hasNext()) {
Object breakage = breakageIterator.next();
if (breakage instanceof Breakage breaking) {
SubShipAssemblyKt.splitShip(VectorConversionsMCKt.toBlockPos(breaking.component1()), breaking.component2(), self, loadedShip);
connData.getBreakages().remove(breakage);
breakageIterator.remove();
}
}


}
}
}
Expand Down

0 comments on commit fc8f75b

Please sign in to comment.