From 5689117e8d5f1ba39aef4c9c60529fb5a697b25d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 29 Dec 2022 18:34:45 +0100 Subject: performance increases via particle logic changes --- .../features/slayer/blaze/BlazeSlayerClearView.kt | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/slayer') diff --git a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerClearView.kt b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerClearView.kt index 8a9f58718..3f0e8ad76 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerClearView.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/slayer/blaze/BlazeSlayerClearView.kt @@ -3,7 +3,6 @@ package at.hannibal2.skyhanni.features.slayer.blaze import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.CheckRenderEntityEvent import at.hannibal2.skyhanni.events.ReceiveParticleEvent -import at.hannibal2.skyhanni.events.RenderParticleEvent import at.hannibal2.skyhanni.features.damageindicator.BossType import at.hannibal2.skyhanni.features.damageindicator.DamageIndicatorManager import at.hannibal2.skyhanni.utils.EntityUtils.hasSkullTexture @@ -46,21 +45,6 @@ class BlazeSlayerClearView { } } - @SubscribeEvent - fun onSpawnParticle(event: RenderParticleEvent) { - if (isEnabled()) { - when (event.callerClass) { - "net.minecraft.block.BlockFire", - "net.minecraft.entity.monster.EntityBlaze", - "net.minecraft.entity.projectile.EntityFireball", - -> { - event.isCanceled = true - return - } - } - } - } - @SubscribeEvent fun onCheckRender(event: CheckRenderEntityEvent<*>) { if (isEnabled()) { -- cgit