auto attack added MC1.8-1.15 packet support

This commit is contained in:
ReinforceZwei 2020-03-22 15:22:15 +08:00 committed by ORelio
parent fa51d9632d
commit 833de25110
2 changed files with 76 additions and 5 deletions

View file

@ -628,6 +628,7 @@ namespace MinecraftClient.Protocol.Handlers
handler.OnEntityProperties(EntityID, keys);
break;
case PacketIncomingType.TimeUpdate:
if (login_phase) break;
long WorldAge = dataTypes.ReadNextLong(packetData);
long TimeOfday = dataTypes.ReadNextLong(packetData);
handler.OnTimeUpdate(WorldAge, TimeOfday);