mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Alerts ChatBot: Support trigger on weather change
This commit is contained in:
parent
1d52d1eadd
commit
81a9955081
8 changed files with 147 additions and 19 deletions
|
|
@ -1139,6 +1139,15 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
handler.GetWorld()[chunkX, chunkZ] = null;
|
||||
}
|
||||
break;
|
||||
case PacketTypesIn.ChangeGameState:
|
||||
if (protocolVersion >= MC_1_15_2_Version)
|
||||
{
|
||||
byte reason = dataTypes.ReadNextByte(packetData);
|
||||
float state = dataTypes.ReadNextFloat(packetData);
|
||||
|
||||
handler.OnGameEvent(reason, state);
|
||||
}
|
||||
break;
|
||||
case PacketTypesIn.PlayerInfo:
|
||||
if (protocolVersion >= MC_1_8_Version)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue