summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinetest-j45 <55553015+Minetest-j45@users.noreply.github.com>2022-06-02 12:04:19 +0100
committerMinetest-j45 <55553015+Minetest-j45@users.noreply.github.com>2022-06-02 12:04:19 +0100
commit906dafbe13600665c1b875784e9dadfb156e959f (patch)
tree6e12a31c88bb13aea74d9592b643d8b9c3a70a7d
parent790a62685ea9402a351ce039500d46271e0fb785 (diff)
downloadmt-906dafbe13600665c1b875784e9dadfb156e959f.tar.xz
Update ToCltMediaPush
-rw-r--r--tocltcmds.go12
1 files changed, 4 insertions, 8 deletions
diff --git a/tocltcmds.go b/tocltcmds.go
index ff18e0a..3297f2f 100644
--- a/tocltcmds.go
+++ b/tocltcmds.go
@@ -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.