Skip to content

Commit

Permalink
Update CoffinSpawner.java
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Aug 29, 2024
1 parent 5d5ee12 commit 34f29a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public boolean canSpawnApparition(Level level, BlockPos pos) {
double distance = Math.sqrt(optionalPlayer.get().distanceToSqr(vec3));
double playerRange = this.getRequiredPlayerRange();
double chance = playerRange - distance;
chance = (0.0006D / playerRange) * chance;
chance = (0.0003D / playerRange) * chance;
return level.getRandom().nextDouble() < chance;
}
}
Expand Down

0 comments on commit 34f29a2

Please sign in to comment.