Skip to content

Commit

Permalink
Literally the only mixin needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePlasticPotato committed Dec 5, 2023
1 parent ceac173 commit f25af18
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import org.valkyrienskies.core.api.ships.datastructures.ShipConnDataAttachment;
import org.valkyrienskies.core.apigame.world.ServerShipWorldCore;
import org.valkyrienskies.core.apigame.world.chunks.TerrainUpdate;
import org.valkyrienskies.core.util.datastructures.DenseBlockPosSet;
import org.valkyrienskies.core.util.datastructures.Breakage;
import org.valkyrienskies.mod.common.IShipObjectWorldServerProvider;
import org.valkyrienskies.mod.common.VSGameUtilsKt;
import org.valkyrienskies.mod.common.assembly.SubShipAssemblyKt;
Expand Down Expand Up @@ -255,11 +255,12 @@ private void postTick(final BooleanSupplier shouldKeepTicking, final CallbackInf
assert connData != null;
HashSet<Object> shipBreakages = (HashSet<Object>) connData.getBreakages();
for (Object breakage : shipBreakages) {
if (breakage instanceof DenseBlockPosSet breaking) {
SubShipAssemblyKt.splitShip(VectorConversionsMCKt.toBlockPos(breaking.stream().iterator().next()), breaking, self, loadedShip);
if (breakage instanceof Breakage breaking) {
SubShipAssemblyKt.splitShip(VectorConversionsMCKt.toBlockPos(breaking.component1()), breaking.component2(), self, loadedShip);
connData.getBreakages().remove(breakage);
}
}
connData.getBreakages().clear();


}
}
Expand Down

0 comments on commit f25af18

Please sign in to comment.