Minecraft-Console-Client/MinecraftClient/Mapping
BruceChen ee02974abe fix: Explosion packet parsing and update attribute fallback for 1.21
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
2026-03-20 01:29:18 +08:00
..
BlockPalettes Inventory, Terrain and Entity handling 2024-07-02 11:08:46 +02:00
EntityMetadataPalettes Implement 1.8 Entity MetaData 2023-03-27 18:22:50 +08:00
EntityPalettes Inventory, Terrain and Entity handling 2024-07-02 11:08:46 +02:00
Block.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
BlockExtension.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
Chunk.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
ChunkColumn.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
CombatEventType.cs Added Player Killed event (Combat and CombatDeath packets). 2022-10-26 20:53:09 +02:00
CommandBlockFlags.cs [skip ci] Update Minecraft wiki links to new domain (#2593) 2023-10-07 17:59:08 +08:00
CommandBlockMode.cs [skip ci] Update Minecraft wiki links to new domain (#2593) 2023-10-07 17:59:08 +08:00
Dimension.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
Direction.cs [skip ci] Update Minecraft wiki links to new domain (#2593) 2023-10-07 17:59:08 +08:00
DirectionExtensions.cs Done auxiliary methods for Direction 2024-03-05 21:49:29 +05:00
Entity.cs merge brigadier-dev into milutinke:1.19.3 2023-01-14 20:42:15 +08:00
EntityMetadataPalette.cs Preliminary 1.21 Support 2024-12-06 16:45:48 +01:00
EntityMetaDataType.cs Implement 1.8 Entity MetaData 2023-03-27 18:22:50 +08:00
EntityPose.cs [SKIP_BUILD] Change file encoding to UTF-8 with BOM 2022-11-28 13:55:05 +08:00
EntityType.cs Inventory, Terrain and Entity handling 2024-07-02 11:08:46 +02:00
EntityTypeExtensions.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
InteractType.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
Location.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
MapIcon.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
MapIconType.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
Material.cs Inventory, Terrain and Entity handling 2024-07-02 11:08:46 +02:00
Material2Tool.cs Inventory, Terrain and Entity handling 2024-07-02 11:08:46 +02:00
MaterialExtensions.cs Added slab handling 1.13-1.19.4 2023-05-16 23:19:31 +02:00
MessageFilterType.cs Trim 2023-01-14 21:07:09 +08:00
Movement.cs Added slab handling 1.13-1.19.4 2023-05-16 23:19:31 +02:00
RaycastHelper.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
VillagerInfo.cs Adds support for villager trading (#1316) 2020-11-08 23:39:07 +01:00
World.cs fix: Explosion packet parsing and update attribute fallback for 1.21 2026-03-20 01:29:18 +08:00