Format TypedRemapper

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent e6402d52c2
commit 43646bbd9d
  1. 6
      deob/src/main/java/dev/openrs2/deob/remap/TypedRemapper.kt

@ -86,7 +86,11 @@ class TypedRemapper private constructor(
} }
private fun generateName(prefixes: MutableMap<String, Int>, prefix: String): String { private fun generateName(prefixes: MutableMap<String, Int>, prefix: String): String {
val separator = if (prefix.last().isDigit()) { "_" } else { "" } val separator = if (prefix.last().isDigit()) {
"_"
} else {
""
}
return prefix + separator + prefixes.merge(prefix, 1, Integer::sum) return prefix + separator + prefixes.merge(prefix, 1, Integer::sum)
} }

Loading…
Cancel
Save