mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fix the Explosion packet handler that was truncating reads at the knockback fields, leaving BlockInteraction, particles, and SoundEvent bytes unconsumed for 1.20.4+. The old commented-out code had three bugs: conditional particle read (should always read both small and large), reading SoundEvent as a plain string (it's a Holder<SoundEvent> encoded as VarInt id + optional inline DIRECT_STREAM_CODEC), and an incorrect fixedRange version gate. Verified against decompiled ClientboundExplodePacket from both 1.20.6 and 1.21.1 — the wire format is identical across versions. Update LoadDefaultAttributes() fallback to match the 1.21.1 registry order (31 attributes), adding 9 new entries: burning_time, explosion_knockback_resistance, mining_efficiency, movement_efficiency, oxygen_bonus, sneaking_speed, submerged_mining_speed, sweeping_damage_ratio, and water_movement_efficiency. This fallback is only used when the server omits the attribute RegistryData packet. Made-with: Cursor |
||
|---|---|---|
| .. | ||
| BlockPalettes | ||
| EntityMetadataPalettes | ||
| EntityPalettes | ||
| Block.cs | ||
| BlockExtension.cs | ||
| Chunk.cs | ||
| ChunkColumn.cs | ||
| CombatEventType.cs | ||
| CommandBlockFlags.cs | ||
| CommandBlockMode.cs | ||
| Dimension.cs | ||
| Direction.cs | ||
| DirectionExtensions.cs | ||
| Entity.cs | ||
| EntityMetadataPalette.cs | ||
| EntityMetaDataType.cs | ||
| EntityPose.cs | ||
| EntityType.cs | ||
| EntityTypeExtensions.cs | ||
| InteractType.cs | ||
| Location.cs | ||
| MapIcon.cs | ||
| MapIconType.cs | ||
| Material.cs | ||
| Material2Tool.cs | ||
| MaterialExtensions.cs | ||
| MessageFilterType.cs | ||
| Movement.cs | ||
| RaycastHelper.cs | ||
| VillagerInfo.cs | ||
| World.cs | ||