Skip to content

Commit

Permalink
Fixed height check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Nov 30, 2021
1 parent 332c859 commit b0740f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/tamaized/voidfog/FogRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private int getLight(Entity entity) {
}

private double getAltitude(Voidable voidable, World world, Entity entity) {
return voidable.isVoidFogDisabled(entity, world) ? 15 : (entity.getY() + 4);
return voidable.isVoidFogDisabled(entity, world) ? 15 : (entity.getY() + 4 - world.getBottomY());
}

private float getFogDistance(World world, Entity entity) {
Expand Down

0 comments on commit b0740f6

Please sign in to comment.