@@ -159,16 +159,16 @@ private <T extends ParticleOptions> void makeParticle(T options, double x, doubl
159
159
}
160
160
161
161
if (callback .getReturnValue () instanceof BreakingItemParticle original ) {
162
- if (options .getType () == ParticleTypes .ITEM_SNOWBALL || ( options instanceof ItemParticleOption data && data .getItem ().is (Items .SNOWBALL ) )) {
162
+ if (options .getType () == ParticleTypes .ITEM_SNOWBALL || options instanceof ItemParticleOption data && data .getItem ().is (Items .SNOWBALL )) {
163
163
if (FancyBlockParticles .CONFIG .misc .isFancySnowballParticles () && FancyBlockParticles .CONFIG .isBlockParticlesEnabled (Blocks .SNOW ))
164
164
callback .setReturnValue (new FBPTerrainParticle .Provider (BlockPos .containing (x , y , z ), FBPConstants .RANDOM .nextFloat (0.35F , 0.6F ) * FancyBlockParticles .CONFIG .misc .getSnowballParticleSizeMultiplier (), null , null , original .rCol , original .gCol , original .bCol ).createParticle (new BlockParticleOption (ParticleTypes .BLOCK , Blocks .SNOW_BLOCK .defaultBlockState ()), this .level , x , y , z , 0.0D , 0.0D , 0.0D ));
165
- } else if (options .getType () == ParticleTypes .ITEM_SLIME || ( options instanceof ItemParticleOption data && data .getItem ().is (Items .SLIME_BALL ) )) {
165
+ } else if (options .getType () == ParticleTypes .ITEM_SLIME || options instanceof ItemParticleOption data && data .getItem ().is (Items .SLIME_BALL )) {
166
166
if (FancyBlockParticles .CONFIG .misc .isFancySlimeParticles () && FancyBlockParticles .CONFIG .isBlockParticlesEnabled (Blocks .SLIME_BLOCK ))
167
167
callback .setReturnValue (new FBPTerrainParticle .Provider (BlockPos .containing (x , y , z ), FBPConstants .RANDOM .nextFloat (0.35F , 0.6F ) * FancyBlockParticles .CONFIG .misc .getSlimeParticleSizeMultiplier (), null , null , original .rCol , original .gCol , original .bCol ).createParticle (new BlockParticleOption (ParticleTypes .BLOCK , Blocks .SLIME_BLOCK .defaultBlockState ()), this .level , x , y , z , 0.0D , 0.0D , 0.0D ));
168
- } else if (options .getType () == ParticleTypes .ITEM || ( options instanceof ItemParticleOption data && data . getItem (). is ( Items . SPLASH_POTION ))) {
169
- if (FancyBlockParticles . CONFIG . misc . isFancyBreakingSplashPotionParticles () && FancyBlockParticles . CONFIG . isBlockParticlesEnabled ( Blocks . GLASS ))
170
- callback . setReturnValue ( new FBPTerrainParticle . Provider ( BlockPos . containing ( x , y , z ), FBPConstants . RANDOM . nextFloat ( 0.5F , 0.75F ) * FancyBlockParticles .CONFIG .misc .getBreakingSplashPotionParticleSizeMultiplier (), null , null , original . rCol , original . gCol , original . bCol ). createParticle ( new BlockParticleOption ( ParticleTypes . BLOCK , Blocks .GLASS . defaultBlockState ()), this . level , x , y , z , xd , yd , zd ));
171
- }
168
+ } else if (options .getType () == ParticleTypes .ITEM )
169
+ if (options instanceof ItemParticleOption data && data . getItem (). is ( Items . SPLASH_POTION ))
170
+ if ( FancyBlockParticles .CONFIG .misc .isFancyBreakingSplashPotionParticles () && FancyBlockParticles . CONFIG . isBlockParticlesEnabled ( Blocks .GLASS ))
171
+ callback . setReturnValue ( new FBPTerrainParticle . Provider ( BlockPos . containing ( x , y , z ), FBPConstants . RANDOM . nextFloat ( 0.5F , 0.75F ) * FancyBlockParticles . CONFIG . misc . getBreakingSplashPotionParticleSizeMultiplier (), null , null , original . rCol , original . gCol , original . bCol ). createParticle ( new BlockParticleOption ( ParticleTypes . BLOCK , Blocks . GLASS . defaultBlockState ()), this . level , x , y , z , xd , yd , zd ));
172
172
}
173
173
174
174
if (FancyBlockParticles .CONFIG .terrain .isFancyFallingDustParticles () && !(callback .getReturnValue () instanceof FBPTerrainParticle )) {
0 commit comments