diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-06-23 20:12:48 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-06-23 20:12:48 +0200 |
| commit | 4402b1f4e707de1a49c94f65c505ae80c7cbb714 (patch) | |
| tree | 852e461f0d780659841272b93a5d6bf58efcbf4d /src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt | |
| parent | 58be5f64770755d3dbe3781e26c33f2a5c8570d9 (diff) | |
| download | Firmament-4402b1f4e707de1a49c94f65c505ae80c7cbb714.tar.gz Firmament-4402b1f4e707de1a49c94f65c505ae80c7cbb714.tar.bz2 Firmament-4402b1f4e707de1a49c94f65c505ae80c7cbb714.zip | |
fix: Some repo exporter inconsistencies
Diffstat (limited to 'src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt')
| -rw-r--r-- | src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt b/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt index 4d43f6e..4f9acd8 100644 --- a/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt +++ b/src/main/kotlin/features/debug/itemeditor/ExportRecipe.kt @@ -28,6 +28,7 @@ import moe.nea.firmament.util.removeColorCodes import moe.nea.firmament.util.skyBlockId import moe.nea.firmament.util.skyblock.SkyBlockItems import moe.nea.firmament.util.tr +import moe.nea.firmament.util.unformattedString import moe.nea.firmament.util.useMatch object ExportRecipe { @@ -43,6 +44,7 @@ object ExportRecipe { (yNames[y].toString() + xNames[x].toString()) to x + y * 9 + 10 } val resultSlot = 25 + val craftingTableSlut = resultSlot - 2 @Subscribe fun exportNpcLocation(event: WorldKeyboardEvent) { @@ -87,7 +89,8 @@ object ExportRecipe { } val title = event.screen.title.string val sellSlot = event.screen.getSlotByIndex(49, false)?.stack - if (title.endsWith(" Recipe")) { + val craftingTableSlot = event.screen.getSlotByIndex(craftingTableSlut, false) + if (craftingTableSlot?.stack?.displayNameAccordingToNbt?.unformattedString == "Crafting Table") { slotIndices.forEach { (_, index) -> event.screen.getSlotByIndex(index, false)?.stack?.let(ItemExporter::ensureExported) } |
