Skip to content

Commit 9ab948d

Browse files
blockdata
1 parent 5fb292e commit 9ab948d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

commands/server_block_data.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import (
88
)
99

1010
type ServerBlockData struct {
11-
Pos types.Pos
11+
Pos types.Pos
12+
BlockData []byte
1213
}
1314

1415
func (p *ServerBlockData) GetCommandId() uint16 {
@@ -26,6 +27,7 @@ func (p *ServerBlockData) UnmarshalPacket(payload []byte) error {
2627
int(int16(binary.BigEndian.Uint16(payload[4:]))),
2728
}
2829
p.Pos = blockpos
30+
p.BlockData = payload[6:]
2931
return nil
3032
}
3133

0 commit comments

Comments
 (0)