aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/mixins/hooks
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-12-29 18:34:45 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-12-29 18:34:45 +0100
commit5689117e8d5f1ba39aef4c9c60529fb5a697b25d (patch)
tree08ec1172f643c71dc17e7f880793ea462da93879 /src/main/java/at/hannibal2/skyhanni/mixins/hooks
parent78328f061716609a61550aced3106b835b6f298c (diff)
downloadskyhanni-5689117e8d5f1ba39aef4c9c60529fb5a697b25d.tar.gz
skyhanni-5689117e8d5f1ba39aef4c9c60529fb5a697b25d.tar.bz2
skyhanni-5689117e8d5f1ba39aef4c9c60529fb5a697b25d.zip
performance increases via particle logic changes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins/hooks')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderGlobalHook.kt32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderGlobalHook.kt b/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderGlobalHook.kt
deleted file mode 100644
index 459d192f8..000000000
--- a/src/main/java/at/hannibal2/skyhanni/mixins/hooks/RenderGlobalHook.kt
+++ /dev/null
@@ -1,32 +0,0 @@
-package at.hannibal2.skyhanni.mixins.hooks
-
-import at.hannibal2.skyhanni.events.RenderParticleEvent
-import at.hannibal2.skyhanni.utils.LorenzUtils
-import org.spongepowered.asm.mixin.injection.callback.CallbackInfo
-
-class RenderGlobalHook {
- companion object {
- fun spawnParticle(
- particleId: Int,
- x: Double,
- y: Double,
- z: Double,
- ci: CallbackInfo,
- ) {
- val callerClass = LorenzUtils.getCallerClass(
- "at.hannibal2.skyhanni.mixins.hooks.RenderGlobalHook\$Companion",
- "at.hannibal2.skyhanni.mixins.hooks.RenderGlobalHook",
- "net.minecraft.client.renderer.RenderGlobal",
- "net.minecraft.world.World",
- "net.minecraft.client.network.NetHandlerPlayClient",
- "net.minecraft.network.play.server.S2APacketParticles",
- ) ?: "null"
-
- if (RenderParticleEvent(particleId, callerClass, x, y, z).postAndCatch()) {
- ci.cancel()
- return
- }
-
- }
- }
-} \ No newline at end of file