Fix #36
parent
9c5f827fc8
commit
3866f20a01
20
itemdef.go
20
itemdef.go
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue