Skip to content

Commit 60f1549

Browse files
[fix] throw away 'explicitly nondeterministic' method
1 parent 3afc053 commit 60f1549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/plus/dragons/createenchantmentindustry/common/fluids/experience/BlazeExperienceBlockEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ protected boolean strikeLightning(ServerLevel level, BlockPos strikePos) {
231231
strikePos,
232232
128,
233233
PoiManager.Occupancy.ANY
234-
).findAny();
234+
).sorted((_p1, _p2) -> level.random.nextInt(-1, 2)).findFirst();
235235
lightning.moveTo(Vec3.atBottomCenterOf(rodPos.orElse(strikePos)));
236236
level.addFreshEntity(lightning);
237237
return rodPos.isEmpty();

0 commit comments

Comments
 (0)