mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Fixed a wrong effect decoding on 1.20.4
This commit is contained in:
parent
d158bfdf21
commit
5de72de234
1 changed files with 2 additions and 2 deletions
|
|
@ -2514,7 +2514,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
if (handler.GetEntityHandlingEnabled())
|
||||
{
|
||||
var entityId = dataTypes.ReadNextVarInt(packetData);
|
||||
var effectId = protocolVersion >= MC_1_18_2_Version
|
||||
var effectId = protocolVersion >= MC_1_20_4_Version
|
||||
? dataTypes.ReadNextVarInt(packetData) + 1
|
||||
: dataTypes.ReadNextByte(packetData);
|
||||
|
||||
|
|
@ -2544,7 +2544,7 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
if (handler.GetEntityHandlingEnabled())
|
||||
{
|
||||
var entityId = dataTypes.ReadNextVarInt(packetData);
|
||||
var effectId = protocolVersion >= MC_1_18_2_Version
|
||||
var effectId = protocolVersion >= MC_1_20_4_Version
|
||||
? dataTypes.ReadNextVarInt(packetData) + 1
|
||||
: dataTypes.ReadNextByte(packetData);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue