Fix crash

This commit is contained in:
somehussar committed 2026-02-21 22:39:12 +01:00
1 parent 51f35bae56
commit 3b198c927c
1 file changed
+9 -2
@@ -28,9 +28,16 @@ public class RequestProperSpawnData extends AbstractPacket {
private static final int BATCH_LIMIT = 5;
@SideOnly(Side.CLIENT)
private static final Set<Integer> entitiesToFix = new HashSet<>();
private static final Set<Integer> entitiesToFix;
@SideOnly(Side.CLIENT)
private static long lastBatchAttemptMillis = 0;
private static long lastBatchAttemptMillis;
static {
if (FMLCommonHandler.instance().getEffectiveSide().isClient()) {
entitiesToFix = new HashSet<>();
lastBatchAttemptMillis = 0;
}
}
private int entityId;