Skip to content

Commit

Permalink
Merge pull request #99 from Hormez2/bombfix
Browse files Browse the repository at this point in the history
- Provisional crash fix (caused by the reference of the list)
  • Loading branch information
RyuuSlayer authored Sep 17, 2024
2 parents c2e755c + f7fdba1 commit b4b0ec1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ private static void harmEntitiesAround(World world, Entity exploder, Entity expl
Math.ceil(z + BOMB_RANGE)
)
);

List<Entity> appliedForceOnEntity = new LinkedList<>();
int victimIndex;
int victimAmount = victims.size();
for (victimIndex = 0; victimIndex < victimAmount; ++victimIndex) {
Entity victim = (Entity) victims.get(victimIndex);
for (int i = 0; i < victims.size(); i++) {
if(i >= victims.size()){
break;
}
Entity victim = (Entity) victims.get(i);
if (!victim.isAlive()) {
continue;
}
Expand Down

0 comments on commit b4b0ec1

Please sign in to comment.