This commit is contained in:
creeper123123321 2021-07-24 12:57:02 -03:00
parent 014b46628a
commit b31a4ec1c0
4 changed files with 5 additions and 5 deletions

View File

@ -61,7 +61,7 @@ dependencies {
val vvVer = "4.0.2-SNAPSHOT"
val vbVer = "4.0.2-SNAPSHOT"
val vrVer = "066c6f16f4"
val vrVer = "b67f637"
implementation("com.viaversion:viaversion:$vvVer") { isTransitive = false }
implementation("com.viaversion:viabackwards:$vbVer") { isTransitive = false }
implementation("com.github.ViaVersion.ViaRewind:viarewind-all:$vrVer") { isTransitive = false }

View File

@ -7,6 +7,5 @@ import com.viaversion.viaversion.api.protocol.version.ProtocolVersion
// cursed 1.7 -> 1.8 from https://github.com/Gerrygames/ClientViaVersion
// + https://github.com/creeper123123321/ViaRewind/tree/17to18
fun registerAspirinProtocols() {
// todo fix
//Via.getManager().protocolManager.registerProtocol(Protocol1_8To1_7_6, ProtocolVersion.v1_8, ProtocolVersion.v1_7_6)
Via.getManager().protocolManager.registerProtocol(Protocol1_8To1_7_6, ProtocolVersion.v1_8, ProtocolVersion.v1_7_6)
}

View File

@ -221,7 +221,7 @@ fun Protocol1_8To1_7_6.registerEntityPackets() {
}
})
this.registerClientbound(ClientboundPackets1_7.ENTITY_HEAD_LOOK, object : PacketRemapper() {
this.registerClientbound(ClientboundPackets1_7.ENTITY_ROTATION, object : PacketRemapper() {
override fun registerMap() {
map(Type.INT, Type.VAR_INT) //Entity Id
map(Type.BYTE) //yaw
@ -254,7 +254,7 @@ fun Protocol1_8To1_7_6.registerEntityPackets() {
}
})
this.registerClientbound(ClientboundPackets1_7.ENTITY_ROTATION, object : PacketRemapper() {
this.registerClientbound(ClientboundPackets1_7.ENTITY_HEAD_LOOK, object : PacketRemapper() {
override fun registerMap() {
map(Type.INT, Type.VAR_INT) //Entity Id
map(Type.BYTE) //Head yaw

View File

@ -472,4 +472,5 @@ fun Protocol1_8To1_7_6.registerPlayerPackets() {
})
this.cancelServerbound(ServerboundPackets1_8.SPECTATE)
this.cancelServerbound(ServerboundPackets1_8.RESOURCE_PACK_STATUS)
}