mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
always sorting arraylist; more wire stuffs
This commit is contained in:
@@ -588,7 +588,7 @@ open class ActorHumanoid(
|
||||
}
|
||||
|
||||
override fun onActorValueChange(key: String, value: Any?) {
|
||||
// quickslot implementation
|
||||
// make quickslot work
|
||||
if (key == AVKey.__PLAYER_QUICKSLOTSEL && value != null) {
|
||||
// ONLY FOR HAND_GRIPs!!
|
||||
val quickBarItem = ItemCodex[inventory.getQuickslot(actorValue.getAsInt(key)!!)?.item]
|
||||
@@ -596,6 +596,9 @@ open class ActorHumanoid(
|
||||
if (quickBarItem != null && quickBarItem.equipPosition == GameItem.EquipPosition.HAND_GRIP) {
|
||||
equipItem(quickBarItem)
|
||||
}
|
||||
else {
|
||||
unequipSlot(GameItem.EquipPosition.HAND_GRIP)
|
||||
}
|
||||
|
||||
// force update inventory UI
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user