soiz1's picture
Upload folder using huggingface_hub
d46f4a3 verified
package com.mojang.realmsclient.exception;
import com.mojang.realmsclient.client.RealmsError;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
@OnlyIn(Dist.CLIENT)
public class RetryCallException extends RealmsServiceException {
public static final int DEFAULT_DELAY = 5;
public final int delaySeconds;
public RetryCallException(int p_87789_, int p_87790_) {
super(RealmsError.CustomError.retry(p_87790_));
if (p_87789_ >= 0 && p_87789_ <= 120) {
this.delaySeconds = p_87789_;
} else {
this.delaySeconds = 5;
}
}
}