From 2ed4f2d23f70ab6da46edf504371cb6b238c802e Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 14 Oct 2025 23:45:30 +0200 Subject: fix: delete old integrations for cit resewn, configured, explosive enhancements --- .../kotlin/features/fixes/CompatibliltyFeatures.kt | 39 ---------------------- 1 file changed, 39 deletions(-) delete mode 100644 src/main/kotlin/features/fixes/CompatibliltyFeatures.kt (limited to 'src/main/kotlin/features') 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::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) - } - } -} -- cgit