aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/mining/CommissionFeatures.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-03 01:24:24 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-09 01:01:18 +0100
commit22f0cc59a2d3bc7900764e3916c670075ff9d35e (patch)
treeb503ff607cf818a539cbbaa403f6851ef979e03d /src/main/kotlin/features/mining/CommissionFeatures.kt
parent646843ba3b960ac48f9866b3640438d3cc1dafc4 (diff)
downloadFirmament-22f0cc59a2d3bc7900764e3916c670075ff9d35e.tar.gz
Firmament-22f0cc59a2d3bc7900764e3916c670075ff9d35e.tar.bz2
Firmament-22f0cc59a2d3bc7900764e3916c670075ff9d35e.zip
1.21.3 WIP
Diffstat (limited to 'src/main/kotlin/features/mining/CommissionFeatures.kt')
-rw-r--r--src/main/kotlin/features/mining/CommissionFeatures.kt8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/kotlin/features/mining/CommissionFeatures.kt b/src/main/kotlin/features/mining/CommissionFeatures.kt
index d0acdfd..faba253 100644
--- a/src/main/kotlin/features/mining/CommissionFeatures.kt
+++ b/src/main/kotlin/features/mining/CommissionFeatures.kt
@@ -1,6 +1,6 @@
package moe.nea.firmament.features.mining
-import net.minecraft.util.Identifier
+import moe.nea.firmament.Firmament
import moe.nea.firmament.annotations.Subscribe
import moe.nea.firmament.events.SlotRenderEvents
import moe.nea.firmament.gui.config.ManagedConfig
@@ -19,10 +19,8 @@ object CommissionFeatures {
if (!Config.highlightCompletedCommissions) return
if (MC.screenName != "Commissions") return
val stack = event.slot.stack
- if(stack.loreAccordingToNbt.any { it.unformattedString == "COMPLETED" }) {
- event.highlight(
- MC.guiAtlasManager.getSprite(Identifier.of("firmament:completed_commission_background"))
- )
+ if (stack.loreAccordingToNbt.any { it.unformattedString == "COMPLETED" }) {
+ event.highlight(Firmament.identifier("completed_commission_background"))
}
}
}