Support Fabric 1.17-pre1. (#170)

This commit is contained in:
ZekerZhayard authored and GitHub committed 2021-05-29 18:53:27 +08:00
1 parent 4df8ce38d6
commit 04899ff676
2 files changed
+3

No files matched your search

@@ -58,6 +58,8 @@ public class MixinConfigPlugin implements IMixinConfigPlugin {
result = this.world_version >= 2205 && this.protocol_version >= 554; // 19w38a+
} else if (mixinClassName.endsWith(".MixinLayerCape") || mixinClassName.endsWith(".MixinRenderPlayer")) {
result = this.world_version >= 2210 && this.protocol_version >= 558; // 19w41a+
} else if (mixinClassName.endsWith(".MixinTileEntitySkull")) {
result = this.world_version <= 2715 && (this.protocol_version <= 803 || (this.protocol_version >= 0x40000001 && this.protocol_version <= 0x4000001C)); // 21w20a-
}
logger.info("target: " + targetClassName + ", mixin: " + mixinClassName + ", result: " + result);
return result;
@@ -8,6 +8,7 @@ import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
/** Fix https://bugs.mojang.com/browse/MC-65587 */
@Mixin(TileEntitySkull.class)
public abstract class MixinTileEntitySkull {
@Inject(