master
HimbeerserverDE 2021-02-28 21:45:33 +01:00
parent 9c5f827fc8
commit 3866f20a01
No known key found for this signature in database
GPG Key ID: 1A651504791E6A8B
1 changed files with 11 additions and 9 deletions

View File

@ -356,18 +356,20 @@ func mergeItemdefs(mgrs map[string][]byte) error {
} }
} }
handdata := rmToolCapabs(handDef) if len(handDef) < 4 {
handdata := rmToolCapabs(handDef)
var compHanddata bytes.Buffer var compHanddata bytes.Buffer
handZw := zlib.NewWriter(&compHanddata) handZw := zlib.NewWriter(&compHanddata)
handZw.Write(handdata) handZw.Write(handdata)
handZw.Close() handZw.Close()
hand := &ItemDef{ hand := &ItemDef{
name: "", name: "",
data: handdata, data: handdata,
}
itemDefs = append(itemDefs, hand)
} }
itemDefs = append(itemDefs, hand)
// Merge definitions into new CItemDefManager // Merge definitions into new CItemDefManager
mgr := make([]byte, 3) mgr := make([]byte, 3)