mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-21 11:46:49 +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
|
||||
|
||||
# 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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user