Fix FullContainerName

This commit is contained in:
AkmalFairuz
2025-01-10 20:12:29 +07:00
parent df5ce01724
commit 1eea0360a5
2 changed files with 2 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ func (x *FullContainerName) Marshal(r protocol.IO) {
r.Uint8(&x.ContainerID)
if IsProtoGTE(r, ID729) {
protocol.OptionalFunc(r, &x.DynamicContainerID, r.Uint32)
} else {
} else if IsProtoGTE(r, 712) {
dynamicContainerID, _ := x.DynamicContainerID.Value()
r.Uint32(&dynamicContainerID)
if dynamicContainerID != 0 {