Skip to content

Commit 4994262

Browse files
committed
chore: more kotlinization
1 parent 4bbcd8e commit 4994262

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/kotlin/be4rjp/sclat/weapon/Funnel.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,8 @@ object Funnel {
5454
var rate = 0.0
5555
for (ai in 0..2) {
5656
try {
57-
if (ArmorStandManager.hashArmorstand.containsKey(getPlayerData(player)!!.getArmorlist(ai))) {
58-
if (ArmorStandManager.hashArmorstand[getPlayerData(player)!!.getArmorlist(ai)] == target) {
59-
rate += 1.5
60-
}
57+
if (ArmorStandManager.hashArmorstand[getPlayerData(player)!!.getArmorlist(ai)] == target) {
58+
rate += 1.5
6159
}
6260
} catch (_: Exception) {
6361
rate -= 0.7

0 commit comments

Comments
 (0)