Fix incompatibility with dulkis skin signature patch
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
|
||||
* SPDX-FileCopyrightText: 2024 Linnea Gräf <nea@nea.moe>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
@@ -24,6 +25,13 @@ public class PropertySignatureIgnorePatch {
|
||||
}
|
||||
}
|
||||
|
||||
@Inject(method = "signature", cancellable = true, at = @At("HEAD"), remap = false)
|
||||
public void returnEmptySignatureInsteadOfNull(CallbackInfoReturnable<String> cir) {
|
||||
if (Fixes.TConfig.INSTANCE.getFixUnsignedPlayerSkins()) {
|
||||
cir.setReturnValue("");
|
||||
}
|
||||
}
|
||||
|
||||
@Inject(method = "hasSignature", cancellable = true, at = @At("HEAD"), remap = false)
|
||||
public void onHasSignature(CallbackInfoReturnable<Boolean> cir) {
|
||||
if (Fixes.TConfig.INSTANCE.getFixUnsignedPlayerSkins()) {
|
||||
|
||||
Reference in New Issue
Block a user