Skip to content

Commit 454089c

Browse files
committed
small tweaks
1 parent b4e7a79 commit 454089c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Movecraft/src/main/java/net/countercraft/movecraft/async/AsyncManager.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ private void processSinking() {
376376

377377
List<UpdateCommand> updateCommands = new ArrayList<>();
378378
// Also cause a explosion every now and then
379-
boolean anyExplosion = false;
380379
if (RANDOM.nextDouble() <= explosionChance) {
381380
int explosions = MathUtils.randomBetween(RANDOM, minExplosions, maxExplosions);
382381
for (int i = 0; i < explosions && !blocks.isEmpty(); i++) {
@@ -385,9 +384,7 @@ private void processSinking() {
385384
if (bukkitLocation.getBlock().isEmpty()) {
386385
continue;
387386
}
388-
anyExplosion |= true;
389-
390-
updateCommands.add(new ExplosionUpdateCommand(bukkitLocation, 6.0F, false));
387+
updateCommands.add(new ExplosionUpdateCommand(bukkitLocation, 4.0F, false));
391388
}
392389
}
393390
if (RANDOM.nextDouble() <= disintegrationChance) {
@@ -424,7 +421,7 @@ private void processSinking() {
424421
final double remainingSizePercentage = ((double)currentSize) / ((double)originalSize);
425422

426423
// We are still not damaged enough to actually sink, so postpone the uninevitable
427-
if (anyExplosion || (maxRemainingPercentageBeforeSinking <= remainingSizePercentage)) {
424+
if (maxRemainingPercentageBeforeSinking <= remainingSizePercentage) {
428425
continue;
429426
}
430427
}

0 commit comments

Comments
 (0)