Skip to content

Commit c7d5b07

Browse files
bumpd versions
1 parent f2caacb commit c7d5b07

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

commandclient/debughandler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func DebugHandler(cc *CommandClient) error {
1919
gotblocks := commands.NewClientGotBlocks()
2020
gotblocks.AddBlock(cmd.Pos)
2121

22+
//fmt.Printf("Got block: %s\n", cmd.Pos)
2223
err := cc.SendCommand(gotblocks)
2324
if err != nil {
2425
return err

commands/client_init.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ func NewClientInit(playername string) *ClientInit {
1818
ClientMax: 28,
1919
SupportedCompressionModes: 0,
2020
MinNetProtoVersion: 37,
21-
MaxNetProtoVersion: 40,
21+
MaxNetProtoVersion: 44,
2222
PlayerName: playername,
2323
}
2424
}
2525

26+
// protocol ref: https://github.com/minetest/minetest/blob/master/src/network/networkprotocol.h#L222
27+
2628
func (p *ClientInit) GetCommandId() uint16 {
2729
return ClientCommandInit
2830
}

dev/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM ghcr.io/minetest/minetest:5.9.0
2+
USER root
3+
RUN apk update && apk add git && \
4+
mkdir -p /root/.minetest/games && \
5+
git clone https://gitlab.com/sztest/nodecore /root/.minetest/games/nodecore

docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ version: "3.6"
22

33
services:
44
minetest:
5-
image: registry.gitlab.com/minetest/minetest/server:5.5.1
6-
user: root
5+
build: dev
76
volumes:
87
- "world_data:/root/.minetest/worlds/world"
98
ports:
109
- "30000:30000/udp"
11-
command: ["/usr/local/bin/minetestserver", "--config", "/etc/minetest/minetest.conf", "--verbose"]
10+
command: ["/usr/local/bin/minetestserver", "--config", "/etc/minetest/minetest.conf", "--gameid", "nodecore", "--verbose", "--world", "/root/.minetest/worlds/world/"]
1211

1312
volumes:
1413
world_data: {}

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
module github.com/minetest-go/minetest_client
22

3-
go 1.17
3+
go 1.22
44

55
require github.com/stretchr/testify v1.7.1
66

77
require (
88
github.com/davecgh/go-spew v1.1.0 // indirect
9-
github.com/gorilla/mux v1.8.0
109
github.com/pmezard/go-difflib v1.0.0 // indirect
1110
golang.org/x/text v0.3.7
1211
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect

go.sum

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
22
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3-
github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
4-
github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
53
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
64
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
75
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
8-
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
9-
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
106
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
117
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
128
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
139
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
10+
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
11+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1412
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1513
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
1614
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

0 commit comments

Comments
 (0)