0.2.2-SNAPSHOT, make compatible with latest ViaVersion, cotton-client-commands is actually included and is a dependency

This commit is contained in:
creeper123123321 2020-04-29 15:38:00 -03:00
parent 83abb49752
commit 0973ddadec
5 changed files with 11 additions and 23 deletions

View File

@ -13,13 +13,13 @@ Note: ViaVersion is not designed for modded Minecraft with modified registries
**Dependencies:**
| Dependency | Download |
| --- | --- |
| ViaVersion 3.0.0+ | dev builds at https://ci.viaversion.com/job/ViaVersion-Abstraction/ |
| Fabric Textures v0 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| Fabric Resource Loader v0 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| Fabric Commands v0 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| (Optional) Cotton Client Commands | https://www.curseforge.com/minecraft/mc-mods/cotton-client-commands |
| Dependency | Download |
| --------------------------------- | --------------------------------------------------------------------- |
| ViaVersion 3.0.0+ | dev builds at https://ci.viaversion.com/job/ViaVersion-Abstraction/ |
| Fabric Textures v0 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| Fabric Resource Loader v0 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| Fabric Commands v0 | https://www.curseforge.com/minecraft/mc-mods/fabric-api |
| (Included) Cotton Client Commands | https://www.curseforge.com/minecraft/mc-mods/cotton-client-commands |
With ViaVersion:

View File

@ -9,7 +9,7 @@ plugins {
group = "com.github.creeper123123321.viafabric"
val gitVersion: groovy.lang.Closure<Any> by extra
version = "0.2.2-SNAPSHOT+" + try {
version = "0.2.3-SNAPSHOT+" + try {
gitVersion()
} catch (e: Exception) {
"unknown"

View File

@ -63,10 +63,4 @@ public class VRDecodeHandler extends MessageToMessageDecoder<ByteBuf> {
if (PipelineUtil.containsCause(cause, CancelException.class)) return;
super.exceptionCaught(ctx, cause);
}
@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
super.channelInactive(ctx);
Via.getManager().handleDisconnect(user);
}
}

View File

@ -66,10 +66,4 @@ public class FabricDecodeHandler extends MessageToMessageDecoder<ByteBuf> {
if (PipelineUtil.containsCause(cause, CancelException.class)) return;
super.exceptionCaught(ctx, cause);
}
@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
super.channelInactive(ctx); // May call decode
Via.getManager().handleDisconnect(user);
}
}

View File

@ -23,15 +23,15 @@
]
},
"depends": {
"cotton-client-commands": "*",
"fabricloader": ">=0.4.0",
"fabric-textures-v0": "*",
"fabric-resource-loader-v0": "*",
"fabric-commands-v0": "*",
"viaversion": ">=3.0.0-SNAPSHOT",
"minecraft": ">1.15.2"
"minecraft": ">1.15.2",
"viaversion": ">=3.0.0-SNAPSHOT"
},
"recommends": {
"cotton-client-commands": "*"
},
"mixins": [
"mixins.viafabric.json"