Fix runtime error and remap warning

This commit is contained in:
RaphiMC 2024-10-27 23:34:06 +01:00
parent d4a689ccc3
commit 41497395b7
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
2 changed files with 1 additions and 2 deletions

View File

@ -117,7 +117,7 @@ public abstract class MixinClientPlayNetworkHandler extends ClientCommonNetworkH
} }
} }
@Redirect(method = "onSignEditorOpen", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V")) @Redirect(method = "onSignEditorOpen", at = @At(value = "INVOKE", target = "Lorg/slf4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V", remap = false))
private void openEmptySignEditor(Logger instance, String format, Object arg1, Object arg2, @Local(argsOnly = true) SignEditorOpenS2CPacket packet) { private void openEmptySignEditor(Logger instance, String format, Object arg1, Object arg2, @Local(argsOnly = true) SignEditorOpenS2CPacket packet) {
if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_21)) { if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_21)) {
final BlockPos pos = packet.getPos(); final BlockPos pos = packet.getPos();

View File

@ -96,7 +96,6 @@
"fixes.minecraft.block.MixinPistonHeadBlock", "fixes.minecraft.block.MixinPistonHeadBlock",
"fixes.minecraft.block.MixinSnowBlock", "fixes.minecraft.block.MixinSnowBlock",
"fixes.minecraft.block.MixinSoulSandBlock", "fixes.minecraft.block.MixinSoulSandBlock",
"fixes.minecraft.block.MixinVaultBlock",
"fixes.minecraft.block.MixinWallBlock", "fixes.minecraft.block.MixinWallBlock",
"fixes.minecraft.entity.MixinAbstractBoatEntity", "fixes.minecraft.entity.MixinAbstractBoatEntity",
"fixes.minecraft.entity.MixinAbstractClientPlayerEntity", "fixes.minecraft.entity.MixinAbstractClientPlayerEntity",