diff options
| author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2022-11-03 11:34:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-03 11:34:09 +0100 |
| commit | 2a6dbf5407b5772db3ac0d203da3cdfac13d69d5 (patch) | |
| tree | ac8cf5047e200423c8cdbb3aee57787e1d5f6f50 /src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinNetHandlerPlayClient.java | |
| parent | 5f0291595204c06be9c6462dce6b166b03c19f68 (diff) | |
| download | notenoughupdates-2a6dbf5407b5772db3ac0d203da3cdfac13d69d5.tar.gz notenoughupdates-2a6dbf5407b5772db3ac0d203da3cdfac13d69d5.tar.bz2 notenoughupdates-2a6dbf5407b5772db3ac0d203da3cdfac13d69d5.zip | |
Add fully Hypixel-Rule compliant glowing mush highlighter (#266)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinNetHandlerPlayClient.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinNetHandlerPlayClient.java | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinNetHandlerPlayClient.java b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinNetHandlerPlayClient.java index e47b03df..4bb91109 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinNetHandlerPlayClient.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/mixins/MixinNetHandlerPlayClient.java @@ -19,11 +19,10 @@ package io.github.moulberry.notenoughupdates.mixins; +import io.github.moulberry.notenoughupdates.events.SpawnParticleEvent; import io.github.moulberry.notenoughupdates.miscfeatures.AntiCoopAdd; -import io.github.moulberry.notenoughupdates.miscfeatures.CrystalWishingCompassSolver; import io.github.moulberry.notenoughupdates.miscfeatures.CustomItemEffects; import io.github.moulberry.notenoughupdates.miscfeatures.EnchantingSolvers; -import io.github.moulberry.notenoughupdates.miscfeatures.FishingHelper; import io.github.moulberry.notenoughupdates.miscfeatures.ItemCooldowns; import io.github.moulberry.notenoughupdates.miscfeatures.MiningStuff; import io.github.moulberry.notenoughupdates.miscfeatures.NewApiKeyHelper; @@ -80,22 +79,18 @@ public class MixinNetHandlerPlayClient { double xCoord, double yCoord, double zCoord, double xOffset, double yOffset, double zOffset, int[] params ) { - CrystalWishingCompassSolver.getInstance().onSpawnParticle( - particleTypes, - xCoord, - yCoord, - zCoord - ); - boolean override = FishingHelper.getInstance().onSpawnParticle( + SpawnParticleEvent event = new SpawnParticleEvent( particleTypes, + isLongDistance, xCoord, yCoord, zCoord, xOffset, yOffset, - zOffset + zOffset, + params ); - if (!override) { + if (!event.post()) { world.spawnParticle(particleTypes, isLongDistance, xCoord, yCoord, zCoord, xOffset, yOffset, zOffset, params); } } |
