Add 1.20.70 & 1.20.60 support + Fix crafting issue (#9)
This commit is contained in:
@@ -44,9 +44,11 @@ func (pk *MobEffect) Marshal(io protocol.IO) {
|
||||
io.Varint32(&pk.Amplifier)
|
||||
io.Bool(&pk.Particles)
|
||||
io.Varint32(&pk.Duration)
|
||||
if proto.IsProtoGTE(io, proto.ID748) {
|
||||
io.Varuint64(&pk.Tick)
|
||||
} else {
|
||||
io.Uint64(&pk.Tick)
|
||||
if proto.IsProtoGTE(io, proto.ID662) {
|
||||
if proto.IsProtoGTE(io, proto.ID748) {
|
||||
io.Varuint64(&pk.Tick)
|
||||
} else {
|
||||
io.Uint64(&pk.Tick)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user