diff options
author | nea <nea@nea.moe> | 2023-09-06 02:35:06 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-09-06 02:35:06 +0200 |
commit | 12292270511d5d37e9c21307fb1e09d400ae1ff4 (patch) | |
tree | 5ec91508b0b088f560c142291e1b1a9d7c281d21 /src/main/kotlin/moe/nea/firmament/repo | |
parent | d29f886e25d7376c6942e7dbe6c305f601e2768d (diff) | |
download | firmament-12292270511d5d37e9c21307fb1e09d400ae1ff4.tar.gz firmament-12292270511d5d37e9c21307fb1e09d400ae1ff4.tar.bz2 firmament-12292270511d5d37e9c21307fb1e09d400ae1ff4.zip |
Add ability to remove item groupings
Item groups prevent batch rendering from being effective, thereby reducing performance.
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/repo')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt b/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt index 3059108..eda6130 100644 --- a/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt +++ b/src/main/kotlin/moe/nea/firmament/repo/RepoManager.kt @@ -13,11 +13,7 @@ import io.github.moulberry.repo.NEURepositoryException import io.github.moulberry.repo.data.NEUItem import io.github.moulberry.repo.data.NEURecipe import io.github.moulberry.repo.data.Rarity -import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents import kotlinx.coroutines.launch -import net.minecraft.client.MinecraftClient -import net.minecraft.network.packet.s2c.play.SynchronizeRecipesS2CPacket -import net.minecraft.text.Text import moe.nea.firmament.Firmament import moe.nea.firmament.Firmament.logger import moe.nea.firmament.gui.config.ManagedConfig @@ -25,6 +21,10 @@ import moe.nea.firmament.hud.ProgressBar import moe.nea.firmament.rei.PetData import moe.nea.firmament.util.MinecraftDispatcher import moe.nea.firmament.util.SkyblockId +import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents +import net.minecraft.client.MinecraftClient +import net.minecraft.network.packet.s2c.play.SynchronizeRecipesS2CPacket +import net.minecraft.text.Text object RepoManager { object Config : ManagedConfig("repo") { @@ -38,6 +38,16 @@ object RepoManager { branch = "prerelease" save() } + + val disableItemGroups by toggle("disable-item-groups") { false } + val reload by button("reload") { + save() + RepoManager.reload() + } + val redownload by button("redownload") { + save() + RepoManager.launchAsyncUpdate(true) + } } val currentDownloadedSha by RepoDownloadManager::latestSavedVersionHash |