Skip to content

Commit

Permalink
wHY IS THIS A POSSIBILITY
Browse files Browse the repository at this point in the history
  • Loading branch information
BluSpring committed Jul 14, 2023
1 parent f13fc57 commit 48a715a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ class KiltAsmRemapper(
)

override fun mapMethodName(owner: String, name: String, descriptor: String): String {
if (name.startsWith("f_") && name.endsWith("_")) {
val fieldMappedPair = fieldMappings[name]

if (fieldMappedPair != null) {
return fieldMappedPair.first
}
}

val mappedPair = methodMappings[name] ?: return name
val mapped = mappedPair.first

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object KiltRemapper {
// Keeps track of the remapper changes, so every time I update the remapper,
// it remaps all the mods following the remapper changes.
// this can update by like 12 versions in 1 update, so don't worry too much about it.
const val REMAPPER_VERSION = 35
const val REMAPPER_VERSION = 36

private val logger = LoggerFactory.getLogger("Kilt Remapper")
// This is created automatically using https://github.com/BluSpring/srg2intermediary
Expand Down

0 comments on commit 48a715a

Please sign in to comment.