diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-06-18 00:35:51 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-06-18 00:35:51 +0200 |
| commit | 4a29d86e477c41327bc97f75c332e37e3dae9bbe (patch) | |
| tree | 2b9b61bad629f160d974b8fbccb6fce21972cd8d /src/main/kotlin/features/debug/PowerUserTools.kt | |
| parent | 4b9e966ca7e8a9291f307850f715820e122d69fd (diff) | |
| download | Firmament-4a29d86e477c41327bc97f75c332e37e3dae9bbe.tar.gz Firmament-4a29d86e477c41327bc97f75c332e37e3dae9bbe.tar.bz2 Firmament-4a29d86e477c41327bc97f75c332e37e3dae9bbe.zip | |
feat: Add 1.8.9 item exporter
Diffstat (limited to 'src/main/kotlin/features/debug/PowerUserTools.kt')
| -rw-r--r-- | src/main/kotlin/features/debug/PowerUserTools.kt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/kotlin/features/debug/PowerUserTools.kt b/src/main/kotlin/features/debug/PowerUserTools.kt index 893b176..b29411b 100644 --- a/src/main/kotlin/features/debug/PowerUserTools.kt +++ b/src/main/kotlin/features/debug/PowerUserTools.kt @@ -56,6 +56,7 @@ object PowerUserTools : FirmamentFeature { val copyEntityData by keyBindingWithDefaultUnbound("entity-data") val copyItemStack by keyBindingWithDefaultUnbound("copy-item-stack") val copyTitle by keyBindingWithDefaultUnbound("copy-title") + val exportItemStackToRepo by keyBindingWithDefaultUnbound("export-item-stack") } override val config @@ -64,14 +65,13 @@ object PowerUserTools : FirmamentFeature { var lastCopiedStack: Pair<ItemStack, Text>? = null set(value) { field = value - if (value != null) lastCopiedStackViewTime = true + if (value != null) lastCopiedStackViewTime = 2 } - var lastCopiedStackViewTime = false + var lastCopiedStackViewTime = 0 @Subscribe fun resetLastCopiedStack(event: TickEvent) { - if (!lastCopiedStackViewTime) lastCopiedStack = null - lastCopiedStackViewTime = false + if (lastCopiedStackViewTime-- < 0) lastCopiedStack = null } @Subscribe @@ -232,7 +232,7 @@ object PowerUserTools : FirmamentFeature { lastCopiedStack = null return } - lastCopiedStackViewTime = true + lastCopiedStackViewTime = 0 it.lines.add(text) } |
