mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 22:01:52 +09:00
fix: smelter: clicking on the slot will reset the scroll now
This commit is contained in:
@@ -197,6 +197,7 @@ class UISmelterBasic(val smelter: FixtureSmelterBasic) : UICanvas(
|
||||
clickedOn = 1
|
||||
self.forceHighlighted = true
|
||||
fireboxItemSlot.forceHighlighted = false
|
||||
playerThings.itemList.itemPage = 0
|
||||
itemListUpdate { ItemCodex.hasTag(it.itm, "SMELTABLE") }
|
||||
}
|
||||
else if (smelter.oreItem != null) {
|
||||
@@ -255,6 +256,7 @@ class UISmelterBasic(val smelter: FixtureSmelterBasic) : UICanvas(
|
||||
clickedOn = 2
|
||||
self.forceHighlighted = true
|
||||
oreItemSlot.forceHighlighted = false
|
||||
playerThings.itemList.itemPage = 0
|
||||
itemListUpdate { ItemCodex.hasTag(it.itm, "COMBUSTIBLE") }
|
||||
}
|
||||
else if (smelter.fireboxItem != null) {
|
||||
@@ -312,6 +314,7 @@ class UISmelterBasic(val smelter: FixtureSmelterBasic) : UICanvas(
|
||||
clickedOn = 0
|
||||
oreItemSlot.forceHighlighted = false
|
||||
fireboxItemSlot.forceHighlighted = false
|
||||
playerThings.itemList.itemPage = 0
|
||||
itemListUpdate()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user