From 2468ffe44482e4beeacf01af9620e5eb454d7d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sat, 23 Jul 2016 12:39:21 +0200 Subject: [PATCH] Alloy furnace - fewer particles --- src/java/mmm/tech/base/alloy_furnace/TBAFBlock.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/java/mmm/tech/base/alloy_furnace/TBAFBlock.java b/src/java/mmm/tech/base/alloy_furnace/TBAFBlock.java index bdb3650..e3ed86f 100644 --- a/src/java/mmm/tech/base/alloy_furnace/TBAFBlock.java +++ b/src/java/mmm/tech/base/alloy_furnace/TBAFBlock.java @@ -180,12 +180,14 @@ public class TBAFBlock SoundEvents.BLOCK_FURNACE_FIRE_CRACKLE , SoundCategory.BLOCKS , 1.f , 1.f , false ); } - if ( rand.nextDouble( ) < .5 ) { + if ( rand.nextDouble( ) < .25 ) { this.spawnFrontParticles( stateIn , worldIn , pos , rand ); } - for ( int i = 0 ; i < 4 ; i++ ) { - this.spawnTopParticles( stateIn , worldIn , pos , rand ); + if ( rand.nextDouble( ) < .5 ) { + for ( int i = 0 ; i < 4 ; i++ ) { + this.spawnTopParticles( stateIn , worldIn , pos , rand ); + } } } }