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/miscfeatures/CrystalWishingCompassSolver.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/miscfeatures/CrystalWishingCompassSolver.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalWishingCompassSolver.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalWishingCompassSolver.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalWishingCompassSolver.java index f378fdca..50975af9 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalWishingCompassSolver.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalWishingCompassSolver.java @@ -22,6 +22,7 @@ package io.github.moulberry.notenoughupdates.miscfeatures; import io.github.moulberry.notenoughupdates.NotEnoughUpdates; import io.github.moulberry.notenoughupdates.core.util.Line; import io.github.moulberry.notenoughupdates.core.util.Vec3Comparable; +import io.github.moulberry.notenoughupdates.events.SpawnParticleEvent; import io.github.moulberry.notenoughupdates.options.NEUConfig; import io.github.moulberry.notenoughupdates.options.customtypes.NEUDebugFlag; import io.github.moulberry.notenoughupdates.util.NEUDebugLogger; @@ -346,15 +347,15 @@ public class CrystalWishingCompassSolver { * per-area structure missing, or because Hypixel. * Always within 1 block of X=513 Y=106 Z=551. */ - public void onSpawnParticle( - EnumParticleTypes particleType, - double x, - double y, - double z - ) { + @SubscribeEvent + public void onSpawnParticle(SpawnParticleEvent event) { + EnumParticleTypes particleType = event.getParticleTypes(); + double x = event.getXCoord(); + double y = event.getYCoord(); + double z = event.getZCoord(); if (!NotEnoughUpdates.INSTANCE.config.mining.wishingCompassSolver || particleType != EnumParticleTypes.VILLAGER_HAPPY || - !SBInfo.getInstance().getLocation().equals("crystal_hollows")) { + !"crystal_hollows".equals(SBInfo.getInstance().getLocation())) { return; } |
