mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
fix: not having IME set would cause NPE
This commit is contained in:
@@ -468,9 +468,13 @@ private object Keebsym {
|
|||||||
val PIE = labels.get(8,1)
|
val PIE = labels.get(8,1)
|
||||||
val MENU = labels.get(6,2)
|
val MENU = labels.get(6,2)
|
||||||
val IME = {
|
val IME = {
|
||||||
net.torvald.terrarum.gamecontroller.IME.icons[net.torvald.terrarum.gamecontroller.IME.getHighLayerByName(
|
App.getConfigString("inputmethod").let { imeName ->
|
||||||
App.getConfigString("inputmethod")
|
if (imeName == "none") labels.get(7, 2)
|
||||||
).config.lang] ?: labels.get(7, 2)
|
else net.torvald.terrarum.gamecontroller.IME.icons[net.torvald.terrarum.gamecontroller.IME.getHighLayerByName(
|
||||||
|
App.getConfigString("inputmethod")
|
||||||
|
).config.lang] ?: labels.get(7, 2)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
val CRAFTING = labels.get(9,1)
|
val CRAFTING = labels.get(9,1)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user