aboutsummaryrefslogtreecommitdiff
path: root/features/events
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-01 21:30:03 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-01 21:30:03 +0800
commit259d21c5e8e3f46ef88024659d368ea74ed92047 (patch)
tree508b0c8b2f24e23a79f20bd5985eb7a084ccc8de /features/events
parentc71b4f83abb2697781f8e6eafa8ad35f924fbdf7 (diff)
downloadSoopyV2-259d21c5e8e3f46ef88024659d368ea74ed92047.tar.gz
SoopyV2-259d21c5e8e3f46ef88024659d368ea74ed92047.tar.bz2
SoopyV2-259d21c5e8e3f46ef88024659d368ea74ed92047.zip
asd
Diffstat (limited to 'features/events')
-rw-r--r--features/events/index.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/features/events/index.js b/features/events/index.js
index 63d8320..bccabe8 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -267,7 +267,10 @@ class Events extends Feature {
if(this.shinyBlockOverlayEnabled.getValue()){
if(particle.toString().startsWith("EntitySpellParticleFX,")){
if(particle.getUnderlyingEntity().func_70534_d()===particle.getUnderlyingEntity().func_70535_g()){
- this.shinyBlocks.push([[particle.getX(), particle.getY(), particle.getZ()], Date.now()])
+ let arr = [particle.getX(), particle.getY(), particle.getZ()]
+ if(arr.map(a=>Math.abs(a%1)).includes(0.25) || arr.map(a=>Math.abs(a%1)).includes(0.75)){
+ this.shinyBlocks.push([[particle.getX(), particle.getY(), particle.getZ()], Date.now()])
+ }
}
}
}