Commit 454089c 1 parent b4e7a79 commit 454089c Copy full SHA for 454089c
File tree 1 file changed +2
-5
lines changed
Movecraft/src/main/java/net/countercraft/movecraft/async
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,6 @@ private void processSinking() {
376
376
377
377
List <UpdateCommand > updateCommands = new ArrayList <>();
378
378
// Also cause a explosion every now and then
379
- boolean anyExplosion = false ;
380
379
if (RANDOM .nextDouble () <= explosionChance ) {
381
380
int explosions = MathUtils .randomBetween (RANDOM , minExplosions , maxExplosions );
382
381
for (int i = 0 ; i < explosions && !blocks .isEmpty (); i ++) {
@@ -385,9 +384,7 @@ private void processSinking() {
385
384
if (bukkitLocation .getBlock ().isEmpty ()) {
386
385
continue ;
387
386
}
388
- anyExplosion |= true ;
389
-
390
- updateCommands .add (new ExplosionUpdateCommand (bukkitLocation , 6.0F , false ));
387
+ updateCommands .add (new ExplosionUpdateCommand (bukkitLocation , 4.0F , false ));
391
388
}
392
389
}
393
390
if (RANDOM .nextDouble () <= disintegrationChance ) {
@@ -424,7 +421,7 @@ private void processSinking() {
424
421
final double remainingSizePercentage = ((double )currentSize ) / ((double )originalSize );
425
422
426
423
// We are still not damaged enough to actually sink, so postpone the uninevitable
427
- if (anyExplosion || ( maxRemainingPercentageBeforeSinking <= remainingSizePercentage ) ) {
424
+ if (maxRemainingPercentageBeforeSinking <= remainingSizePercentage ) {
428
425
continue ;
429
426
}
430
427
}
You can’t perform that action at this time.
0 commit comments