diff options
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" |
