Skip to content

Commit

Permalink
More fixes to explosions
Browse files Browse the repository at this point in the history
  • Loading branch information
aromaa committed Nov 10, 2024
1 parent 486825d commit d94ab6b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import java.util.List;
import java.util.Map;
import java.util.StringJoiner;
import java.util.stream.Collectors;

@Mixin(net.minecraft.world.level.ServerExplosion.class)
public abstract class ServerExplosionMixin implements ExplosionBridge {
Expand Down Expand Up @@ -133,7 +134,7 @@ public abstract class ServerExplosionMixin implements ExplosionBridge {
return Collections.emptyList(); // no entities affected
}
if (this.shadow$interactsWithBlocks()) {
this.impl$affectedBlocks = event.affectedLocations().stream().map(VecHelper::toBlockPos).toList();
this.impl$affectedBlocks = event.affectedLocations().stream().map(VecHelper::toBlockPos).collect(Collectors.toList());
}
if (this.impl$shouldDamageEntities) {
return event.entities().stream().map(Entity.class::cast).toList();
Expand Down

0 comments on commit d94ab6b

Please sign in to comment.