Updated to Fabric/Minecraft 1.20.4

This commit is contained in:
FlorianMichael 2023-12-07 16:24:02 +01:00
parent aaf7edbd85
commit e7e19d07b9
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 8 additions and 8 deletions

View File

@ -3,10 +3,10 @@ org.gradle.jvmargs=-Xmx8G
org.gradle.parallel=true
# Minecraft/Fabric
minecraft_version=1.20.3
yarn_mappings=1.20.3+build.1
minecraft_version=1.20.4
yarn_mappings=1.20.4+build.1
loader_version=0.15.0
fabric_api_version=0.91.1+1.20.3
fabric_api_version=0.91.1+1.20.4
# Project Details
mod_version=3.0.0-SNAPSHOT

View File

@ -160,10 +160,7 @@ public abstract class MixinClientPlayNetworkHandler extends ClientCommonNetworkH
@Inject(method = "onGameJoin", at = @At("RETURN"))
private void sendAdditionalData(CallbackInfo ci) {
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_8)) {
this.onEntityStatus(new EntityStatusS2CPacket(this.client.player, (byte) 28)); // Op-level 4
}
if (ProtocolHack.getTargetVersion().isOlderThan(VersionEnum.r1_12)) {
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_11_1to1_11_2)) {
final List<RecipeEntry<?>> recipes = new ArrayList<>();
final List<RecipeInfo<?>> recipeInfos = Recipes1_11_2.getRecipes();
for (int i = 0; i < recipeInfos.size(); i++) {
@ -171,6 +168,9 @@ public abstract class MixinClientPlayNetworkHandler extends ClientCommonNetworkH
}
this.onSynchronizeRecipes(new SynchronizeRecipesS2CPacket(recipes));
}
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_8)) {
this.onEntityStatus(new EntityStatusS2CPacket(this.client.player, (byte) 28)); // Op-level 4
}
}
}

View File

@ -50,7 +50,7 @@
"depends": {
"fabricloader": ">=0.15.0",
"fabric-api": ">=0.91.1+1.20.3",
"minecraft": "~1.20.3",
"minecraft": ">=1.20.3",
"java": ">=17"
},
"breaks": {