mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-22 11:56:21 +01:00
Updated to Fabric/Minecraft 1.20.4
This commit is contained in:
parent
aaf7edbd85
commit
e7e19d07b9
@ -3,10 +3,10 @@ org.gradle.jvmargs=-Xmx8G
|
|||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
|
|
||||||
# Minecraft/Fabric
|
# Minecraft/Fabric
|
||||||
minecraft_version=1.20.3
|
minecraft_version=1.20.4
|
||||||
yarn_mappings=1.20.3+build.1
|
yarn_mappings=1.20.4+build.1
|
||||||
loader_version=0.15.0
|
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
|
# Project Details
|
||||||
mod_version=3.0.0-SNAPSHOT
|
mod_version=3.0.0-SNAPSHOT
|
||||||
|
@ -160,10 +160,7 @@ public abstract class MixinClientPlayNetworkHandler extends ClientCommonNetworkH
|
|||||||
|
|
||||||
@Inject(method = "onGameJoin", at = @At("RETURN"))
|
@Inject(method = "onGameJoin", at = @At("RETURN"))
|
||||||
private void sendAdditionalData(CallbackInfo ci) {
|
private void sendAdditionalData(CallbackInfo ci) {
|
||||||
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_8)) {
|
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_11_1to1_11_2)) {
|
||||||
this.onEntityStatus(new EntityStatusS2CPacket(this.client.player, (byte) 28)); // Op-level 4
|
|
||||||
}
|
|
||||||
if (ProtocolHack.getTargetVersion().isOlderThan(VersionEnum.r1_12)) {
|
|
||||||
final List<RecipeEntry<?>> recipes = new ArrayList<>();
|
final List<RecipeEntry<?>> recipes = new ArrayList<>();
|
||||||
final List<RecipeInfo<?>> recipeInfos = Recipes1_11_2.getRecipes();
|
final List<RecipeInfo<?>> recipeInfos = Recipes1_11_2.getRecipes();
|
||||||
for (int i = 0; i < recipeInfos.size(); i++) {
|
for (int i = 0; i < recipeInfos.size(); i++) {
|
||||||
@ -171,6 +168,9 @@ public abstract class MixinClientPlayNetworkHandler extends ClientCommonNetworkH
|
|||||||
}
|
}
|
||||||
this.onSynchronizeRecipes(new SynchronizeRecipesS2CPacket(recipes));
|
this.onSynchronizeRecipes(new SynchronizeRecipesS2CPacket(recipes));
|
||||||
}
|
}
|
||||||
|
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_8)) {
|
||||||
|
this.onEntityStatus(new EntityStatusS2CPacket(this.client.player, (byte) 28)); // Op-level 4
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.15.0",
|
"fabricloader": ">=0.15.0",
|
||||||
"fabric-api": ">=0.91.1+1.20.3",
|
"fabric-api": ">=0.91.1+1.20.3",
|
||||||
"minecraft": "~1.20.3",
|
"minecraft": ">=1.20.3",
|
||||||
"java": ">=17"
|
"java": ">=17"
|
||||||
},
|
},
|
||||||
"breaks": {
|
"breaks": {
|
||||||
|
Loading…
Reference in New Issue
Block a user