]> git.lizzy.rs Git - mt.git/commitdiff
Update ToCltMediaPush
authorMinetest-j45 <55553015+Minetest-j45@users.noreply.github.com>
Thu, 2 Jun 2022 11:04:19 +0000 (12:04 +0100)
committerMinetest-j45 <55553015+Minetest-j45@users.noreply.github.com>
Thu, 2 Jun 2022 11:04:19 +0000 (12:04 +0100)
tocltcmds.go

index ff18e0ae459875656d59f066a58cff5453f7161e..3297f2fec99e71d41715eaf0efb57d0a231b99da 100644 (file)
@@ -1,7 +1,6 @@
 package mt
 
 import (
-       "crypto/sha1"
        "fmt"
        "image/color"
        "io"
@@ -178,13 +177,10 @@ type ToCltAddPlayerVel struct {
 
 // ToCltMediaPush is sent when a media file is dynamically added.
 type ToCltMediaPush struct {
-       //mt:const uint16(sha1.Size)
-       SHA1        [sha1.Size]byte
-       Filename    string
-       ShouldCache bool
-
-       //mt:len32
-       Data []byte
+       RawHash       string
+       Filename      string
+       CallbackToken uint32
+       ShouldCache   bool
 }
 
 // ToCltChatMsg tells the client that is has received a chat message.