allow ClientCacheStatus to not be manually disabled

This commit is contained in:
ethaniccc
2025-08-29 20:12:42 -04:00
parent 5086f9bfc8
commit c7381129c2

View File

@@ -179,7 +179,7 @@ func (p *Protocol) downgradePackets(pks []packet.Packet, conn *minecraft.Conn) [
for pkIndex, pk := range pks { for pkIndex, pk := range pks {
switch pk := pk.(type) { switch pk := pk.(type) {
case *packet.ClientCacheStatus: case *packet.ClientCacheStatus:
pk.Enabled = false // TODO: enable when chunk translation is not broken // pk.Enabled = false // TODO: enable when chunk translation is not broken
case *packet.SetActorMotion: case *packet.SetActorMotion:
pks[pkIndex] = &legacypacket.SetActorMotion{ pks[pkIndex] = &legacypacket.SetActorMotion{
EntityRuntimeID: pk.EntityRuntimeID, EntityRuntimeID: pk.EntityRuntimeID,
@@ -756,7 +756,7 @@ func (p *Protocol) upgradePackets(pks []packet.Packet, conn *minecraft.Conn) []p
for pkIndex, pk := range pks { for pkIndex, pk := range pks {
switch pk := pk.(type) { switch pk := pk.(type) {
case *packet.ClientCacheStatus: case *packet.ClientCacheStatus:
pk.Enabled = false // TODO: enable when chunk translation is not broken // pk.Enabled = false // TODO: enable when chunk translation is not broken
case *legacypacket.SetActorMotion: case *legacypacket.SetActorMotion:
pks[pkIndex] = &packet.SetActorMotion{ pks[pkIndex] = &packet.SetActorMotion{
EntityRuntimeID: pk.EntityRuntimeID, EntityRuntimeID: pk.EntityRuntimeID,