mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-24 22:01:49 +01:00
fix 1.7
This commit is contained in:
parent
014b46628a
commit
b31a4ec1c0
@ -61,7 +61,7 @@ dependencies {
|
|||||||
|
|
||||||
val vvVer = "4.0.2-SNAPSHOT"
|
val vvVer = "4.0.2-SNAPSHOT"
|
||||||
val vbVer = "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:viaversion:$vvVer") { isTransitive = false }
|
||||||
implementation("com.viaversion:viabackwards:$vbVer") { isTransitive = false }
|
implementation("com.viaversion:viabackwards:$vbVer") { isTransitive = false }
|
||||||
implementation("com.github.ViaVersion.ViaRewind:viarewind-all:$vrVer") { isTransitive = false }
|
implementation("com.github.ViaVersion.ViaRewind:viarewind-all:$vrVer") { isTransitive = false }
|
||||||
|
@ -7,6 +7,5 @@ import com.viaversion.viaversion.api.protocol.version.ProtocolVersion
|
|||||||
// cursed 1.7 -> 1.8 from https://github.com/Gerrygames/ClientViaVersion
|
// cursed 1.7 -> 1.8 from https://github.com/Gerrygames/ClientViaVersion
|
||||||
// + https://github.com/creeper123123321/ViaRewind/tree/17to18
|
// + https://github.com/creeper123123321/ViaRewind/tree/17to18
|
||||||
fun registerAspirinProtocols() {
|
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)
|
|
||||||
}
|
}
|
||||||
|
@ -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() {
|
override fun registerMap() {
|
||||||
map(Type.INT, Type.VAR_INT) //Entity Id
|
map(Type.INT, Type.VAR_INT) //Entity Id
|
||||||
map(Type.BYTE) //yaw
|
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() {
|
override fun registerMap() {
|
||||||
map(Type.INT, Type.VAR_INT) //Entity Id
|
map(Type.INT, Type.VAR_INT) //Entity Id
|
||||||
map(Type.BYTE) //Head yaw
|
map(Type.BYTE) //Head yaw
|
||||||
|
@ -472,4 +472,5 @@ fun Protocol1_8To1_7_6.registerPlayerPackets() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.cancelServerbound(ServerboundPackets1_8.SPECTATE)
|
this.cancelServerbound(ServerboundPackets1_8.SPECTATE)
|
||||||
|
this.cancelServerbound(ServerboundPackets1_8.RESOURCE_PACK_STATUS)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user