Repair decompiled control flow
Some checks failed
Build / build (push) Failing after 5m44s

This commit is contained in:
MrSphay
2026-05-04 12:24:39 +02:00
parent 345d8a8310
commit 75323fdb8c
2 changed files with 21 additions and 24 deletions

View File

@@ -24,7 +24,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import java.io.Reader;
import java.lang.invoke.LambdaMetafactory;
import java.lang.reflect.Type;
import java.nio.file.Files;
import java.nio.file.LinkOption;
@@ -491,12 +490,13 @@ public class BlockIndexManager {
BlockIndexManager.sendProgressUpdate();
try {
currentServer = ServerLifecycleHooks.getCurrentServer();
if (currentServer == null) ** GOTO lbl24
for (ServerPlayer serverPlayer : currentServer.m_6846_().m_11314_()) {
if (!BlockIndexManager.isPlayerAuthorized(serverPlayer)) continue;
packet = new ScanLoadPromptPacket(false);
PacketHandler.INSTANCE.send(PacketDistributor.PLAYER.with((Supplier<ServerPlayer>)LambdaMetafactory.metafactory(null, null, null, ()Ljava/lang/Object;, lambda$loadExistingData$11(net.minecraft.server.level.ServerPlayer ), ()Lnet/minecraft/server/level/ServerPlayer;)((ServerPlayer)serverPlayer)), (Object)packet);
ExplosionOverhaul.LOGGER.debug("Hidden load prompt for authorized player: {}", (Object)serverPlayer.m_7755_().getString());
if (currentServer != null) {
for (ServerPlayer serverPlayer : currentServer.m_6846_().m_11314_()) {
if (!BlockIndexManager.isPlayerAuthorized(serverPlayer)) continue;
packet = new ScanLoadPromptPacket(false);
PacketHandler.INSTANCE.send(PacketDistributor.PLAYER.with(() -> serverPlayer), (Object)packet);
ExplosionOverhaul.LOGGER.debug("Hidden load prompt for authorized player: {}", (Object)serverPlayer.m_7755_().getString());
}
}
}
catch (Exception e) {
@@ -506,9 +506,6 @@ public class BlockIndexManager {
ExplosionOverhaul.LOGGER.warn("BlockIndexManager: Failed to load existing data, falling back to new scan");
BlockIndexManager.startNewScan();
}
lbl24:
// 4 sources
BlockIndexManager.pendingScanLevel = null;
}
}