Skip to content

Commit

Permalink
Updated to Fabric/Minecraft 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Dec 7, 2023
1 parent aaf7edb commit e7e19d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,17 @@ private void cancelSmallChanges(Entity instance, double x, double y, double z, f

@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++) {
recipes.add(recipeInfos.get(i).create(new Identifier("viafabricplus", "recipe/" + i)));
}
this.onSynchronizeRecipes(new SynchronizeRecipesS2CPacket(recipes));
}
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_8)) {
this.onEntityStatus(new EntityStatusS2CPacket(this.client.player, (byte) 28)); // Op-level 4
}
}

}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit e7e19d0

Please sign in to comment.