Skip to content

Commit 04c592c

Browse files
committed
chore(game): improve loop condition
1 parent f577944 commit 04c592c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

game/src/main/java/net/onelitefeather/cygnus/listener/game/GamePreLaunchListener.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ public void accept(GamePreLaunchEvent event) {
4040
AttributeHelper.adjustStepHeightAndJump(player);
4141
if (TeamHelper.isSlenderTeam(player)) continue;
4242
AttributeHelper.decreaseSpeed(player);
43-
if (adjustedHealth == 0) continue;
44-
AttributeHelper.updateHealthScale(player, adjustedHealth);
43+
if (adjustedHealth != 0) {
44+
AttributeHelper.updateHealthScale(player, adjustedHealth);
45+
}
4546
}
4647
}
4748
}

0 commit comments

Comments
 (0)