generated from MrSphay/codex-agent-repository-kit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user