Fix texture bunches

master
HimbeerserverDE 2021-04-04 12:02:30 +02:00
parent 79967f2e1f
commit ce23e89d3a
No known key found for this signature in database
GPG Key ID: 1A651504791E6A8B
2 changed files with 5 additions and 5 deletions

View File

@ -256,15 +256,15 @@ func (c *Conn) sendMedia(r *bytes.Reader) {
}
var bunches []map[string]*mediaFile
bunch := make(map[string]*mediaFile)
bunches[0] = make(map[string]*mediaFile)
var bunchlen int
for _, f := range rq {
bunch[f] = media[f]
bunches[len(bunches)-1][f] = media[f]
bunchlen += len(media[f].data)
if bunchlen >= BytesPerBunch {
bunches = append(bunches, bunch)
bunch = make(map[string]*mediaFile)
bunches = append(bunches, make(map[string]*mediaFile))
bunchlen = 0
}
}

View File

@ -76,7 +76,7 @@ func Announce(action string) error {
if action != AnnounceDelete {
data["name"] = conf("serverlist_name")
data["description"] = conf("serverlist_desc")
data["version"] = "multiserver v1.12.1"
data["version"] = "multiserver v1.12.2"
data["proto_min"] = ProtoMin
data["proto_max"] = ProtoLatest
data["url"] = conf("serverlist_display_url")