Skip to content

Commit

Permalink
fix energy hatch causes inifinite loop on explosion (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarri6343 authored Jul 4, 2022
1 parent b0bcaa3 commit 841ba0a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,10 @@ public int getDefaultPaintingColor() {

public void explodeMultiblock() {
List<IMultiblockPart> parts = new ArrayList<>(getMultiblockParts());
parts.forEach(p -> ((MetaTileEntity) p).doExplosion(8));
for (IMultiblockPart part : parts) {
part.removeFromMultiBlock(this);
((MetaTileEntity) part).doExplosion(8);
}
doExplosion(8);
}
}

0 comments on commit 841ba0a

Please sign in to comment.