Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tlf30 committed Sep 13, 2017
1 parent 0943d1c commit e979a21
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions game/src/plugins/skill/firemaking/src/fireamaking_data.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,4 @@ val FIRE_OBJ = 2732
val ASH = 592
val LIGHT_ANIMATION = Animation(733)

fun lookupLog(id: Int): Log? {
for (log in Log.values()) {
if (log.id == id) {
return log;
}
}
return null
}
fun lookupLog(id: Int): Log? = Log.values().find { it.id == id }

0 comments on commit e979a21

Please sign in to comment.