aboutsummaryrefslogtreecommitdiff
path: root/content.go
diff options
context:
space:
mode:
authorEdzell <derz@elidragon.com>2022-04-20 18:48:09 +0200
committerEdzell <derz@elidragon.com>2022-04-20 18:48:09 +0200
commit871197ec9e4a61f4b7f997d1207a4335ea206f79 (patch)
tree59053d895a96ae41522c48fa3729beec0e75ea56 /content.go
parent11343d9aad49248193875190fb2419c5351bc416 (diff)
Changed Caching to use hex encoded hashes instead of file names to reduce footprint and improve performance
Diffstat (limited to 'content.go')
-rw-r--r--content.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/content.go b/content.go
index 215beb4..653c0e3 100644
--- a/content.go
+++ b/content.go
@@ -46,7 +46,7 @@ type contentConn struct {
}
itemDefs []mt.ItemDef
- aliases []struct{ Alias, Orig string }
+ aliases []struct{ Alias, Orig string } // alias = texture hash
nodeDefs []mt.NodeDef
@@ -291,6 +291,7 @@ func (cc *ClientConn) sendMedia(filenames []string) {
var known bool
for _, f := range cc.media {
if f.name == filename {
+ log.Print("filename", filename, f.name)
mfile := struct {
Name string
Data []byte