Disable ClientCache by default

This commit is contained in:
AkmalFairuz
2025-01-01 02:26:28 +07:00
parent a4b14835de
commit 48c033eca2
2 changed files with 2 additions and 5 deletions

View File

@@ -1,5 +0,0 @@
package proto
type legacyType struct {
ProtocolID int32
}

View File

@@ -173,6 +173,8 @@ func (p *Protocol) downgradePackets(pks []packet.Packet, conn *minecraft.Conn) [
func (p *Protocol) upgradePackets(pks []packet.Packet, conn *minecraft.Conn) []packet.Packet {
for pkIndex, pk := range pks {
switch pk := pk.(type) {
case *packet.ClientCacheStatus:
pk.Enabled = false // TODO: enable when chunk translation is not broken
case *legacypacket.CameraPresets:
presets := make([]protocol.CameraPreset, len(pk.Presets))
for i, p := range pk.Presets {