Port to MC 1.19.2 (fixes #801)
This commit is contained in:
@@ -9,7 +9,11 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(PlayerPublicKey.PublicKeyData.class)
|
||||
public abstract class Mixin_AllowExpiredPlayerKeys {
|
||||
//#if MC>=11902
|
||||
//$$ @Inject(method = { "isExpired()Z", "isExpired(Ljava/time/Duration;)Z" }, at = @At("HEAD"), cancellable = true)
|
||||
//#else
|
||||
@Inject(method = "isExpired", at = @At("HEAD"), cancellable = true)
|
||||
//#endif
|
||||
private void neverExpireWhenInReplay(CallbackInfoReturnable<Boolean> ci) {
|
||||
if (ReplayModReplay.instance.getReplayHandler() != null) {
|
||||
ci.setReturnValue(false);
|
||||
|
||||
Reference in New Issue
Block a user