First support 1.21.130

This commit is contained in:
AkmalFairuz
2025-12-10 23:05:46 +07:00
parent 2b6358ea51
commit 65693b1e85
22 changed files with 10348 additions and 40 deletions

View File

@@ -30,6 +30,8 @@ type MobEffect struct {
Duration int32
// Tick is the server tick at which the packet was sent. It is used in relation to CorrectPlayerMovePrediction.
Tick uint64
// Ambient specifies if the effect is ambient. If set to false, it will not get treated as an ambient effect.
Ambient bool
}
// ID ...
@@ -50,5 +52,9 @@ func (pk *MobEffect) Marshal(io protocol.IO) {
} else {
io.Uint64(&pk.Tick)
}
if proto.IsProtoGTE(io, proto.ID898) {
io.Bool(&pk.Ambient)
}
}
}