Alloy furnace - fewer particles

This commit is contained in:
Emmanuel BENOîT 2016-07-23 12:39:21 +02:00
parent 34bcb66f61
commit 2468ffe444

View file

@ -180,15 +180,17 @@ public class TBAFBlock
SoundEvents.BLOCK_FURNACE_FIRE_CRACKLE , SoundCategory.BLOCKS , 1.f , 1.f , false ); 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 ); this.spawnFrontParticles( stateIn , worldIn , pos , rand );
} }
if ( rand.nextDouble( ) < .5 ) {
for ( int i = 0 ; i < 4 ; i++ ) { for ( int i = 0 ; i < 4 ; i++ ) {
this.spawnTopParticles( stateIn , worldIn , pos , rand ); this.spawnTopParticles( stateIn , worldIn , pos , rand );
} }
} }
} }
}
private void spawnTopParticles( final IBlockState stateIn , final World worldIn , final BlockPos pos , private void spawnTopParticles( final IBlockState stateIn , final World worldIn , final BlockPos pos ,