diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-10-14 23:45:30 +0200 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-10-14 23:45:30 +0200 |
| commit | 2ed4f2d23f70ab6da46edf504371cb6b238c802e (patch) | |
| tree | 7d1b49f8263924a5e13d509c45e72aa1f0316c6e /src/main | |
| parent | 765a38ecc0f855229722354866eaf561a9a6123c (diff) | |
| download | Firmament-2ed4f2d23f70ab6da46edf504371cb6b238c802e.tar.gz Firmament-2ed4f2d23f70ab6da46edf504371cb6b238c802e.tar.bz2 Firmament-2ed4f2d23f70ab6da46edf504371cb6b238c802e.zip | |
fix: delete old integrations for cit resewn, configured, explosive enhancements
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/kotlin/features/fixes/CompatibliltyFeatures.kt | 39 | ||||
| -rw-r--r-- | src/main/resources/fabric.mod.json | 5 |
2 files changed, 0 insertions, 44 deletions
diff --git a/src/main/kotlin/features/fixes/CompatibliltyFeatures.kt b/src/main/kotlin/features/fixes/CompatibliltyFeatures.kt deleted file mode 100644 index 55592c5..0000000 --- a/src/main/kotlin/features/fixes/CompatibliltyFeatures.kt +++ /dev/null @@ -1,39 +0,0 @@ -package moe.nea.firmament.features.fixes - -import net.minecraft.particle.ParticleTypes -import net.minecraft.util.math.Vec3d -import moe.nea.firmament.annotations.Subscribe -import moe.nea.firmament.events.ParticleSpawnEvent -import moe.nea.firmament.util.compatloader.CompatLoader -import moe.nea.firmament.util.data.Config -import moe.nea.firmament.util.data.ManagedConfig - -object CompatibliltyFeatures { - val identifier: String - get() = "compatibility" - - @Config - object TConfig : ManagedConfig(identifier, Category.INTEGRATIONS) { - val enhancedExplosions by toggle("explosion-enabled") { false } - val explosionSize by integer("explosion-power", 10, 50) { 1 } - } - - interface ExplosiveApiWrapper { - fun spawnParticle(vec3d: Vec3d, power: Float) - - companion object : CompatLoader<ExplosiveApiWrapper>(ExplosiveApiWrapper::class.java) - } - - private val explosiveApiWrapper = ExplosiveApiWrapper.singleInstance - - @Subscribe - fun onExplosion(it: ParticleSpawnEvent) { - if (TConfig.enhancedExplosions && - it.particleEffect.type == ParticleTypes.EXPLOSION_EMITTER && - explosiveApiWrapper != null - ) { - it.cancel() - explosiveApiWrapper.spawnParticle(it.position, 2F) - } - } -} diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 115778f..ce8f0bd 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -56,11 +56,6 @@ "minecraft": ">=${minecraft_version}" }, "custom": { - "configured": { - "providers": [ - "moe.nea.firmament.compat.configured.ConfiguredCompat" - ] - }, "modmenu": { "links": { "modmenu.discord": "https://discord.gg/64pFP94AWA" |
