Skip to content

Commit

Permalink
update inv
Browse files Browse the repository at this point in the history
  • Loading branch information
RestartFU committed Jul 24, 2024
1 parent c32aae7 commit 40d502d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 4 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ require (
)

require (
github.com/bedrock-gophers/inv v0.1.0 // indirect
github.com/bedrock-gophers/intercept v0.1.2-0.20240720171111-5006c664eccd // indirect
github.com/bedrock-gophers/inv v0.2.2 // indirect
github.com/bedrock-gophers/unsafe v0.0.0-20240505195854-ea3c41bde898 // indirect
github.com/brentp/intintmap v0.0.0-20190211203843-30dc0ade9af9 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/df-mc/atomic v1.10.0 // indirect
Expand All @@ -29,7 +31,7 @@ require (
github.com/sandertv/gophertunnel v1.39.0 // indirect
github.com/segmentio/fasthash v1.0.3 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f // indirect
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
golang.org/x/image v0.17.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
Expand Down
8 changes: 8 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
github.com/bedrock-gophers/intercept v0.1.2-0.20240720171111-5006c664eccd h1:D5yYnMP1BjBzNzQTcZUFGiUX957mbrKW0kLgVzoEYpE=
github.com/bedrock-gophers/intercept v0.1.2-0.20240720171111-5006c664eccd/go.mod h1:O9x7OdMuTnKfqoCvqL0+xD9OwCmlPnyOvFo9Nq+Dg8E=
github.com/bedrock-gophers/inv v0.1.0 h1:R7qZ8PMShtfMvB6nKE4HhZUPkalV8pQjVlF9/6b2SXo=
github.com/bedrock-gophers/inv v0.1.0/go.mod h1:4ToPQjChIj0k813cOvUtKR6tfsDxvkddOTOBNP6bEvQ=
github.com/bedrock-gophers/inv v0.2.2 h1:9OIBAxJP4MLwIzS12B6fVqAZIHSF8wZLqiIHoQORk6M=
github.com/bedrock-gophers/inv v0.2.2/go.mod h1:m90OwadzNs0quxMRneAk/qq5/FmNVAUjoxUZeFJTn6w=
github.com/bedrock-gophers/unsafe v0.0.0-20240505195854-ea3c41bde898 h1:PiKhXq+BcOiixOv25EzHApylKOOIH03qpUHk5NgbBts=
github.com/bedrock-gophers/unsafe v0.0.0-20240505195854-ea3c41bde898/go.mod h1:v48j2kHfvemXKX4A1WFqzlgTnwBENAn2vQWlgk8mLJA=
github.com/brentp/intintmap v0.0.0-20190211203843-30dc0ade9af9 h1:/G0ghZwrhou0Wq21qc1vXXMm/t/aKWkALWwITptKbE0=
github.com/brentp/intintmap v0.0.0-20190211203843-30dc0ade9af9/go.mod h1:TOk10ahXejq9wkEaym3KPRNeuR/h5Jx+s8QRWIa2oTM=
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
Expand Down Expand Up @@ -93,6 +99,8 @@ golang.org/x/exp v0.0.0-20230206171751-46f607a40771 h1:xP7rWLUr1e1n2xkK5YB4LI0hP
golang.org/x/exp v0.0.0-20230206171751-46f607a40771/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f h1:99ci1mjWVBWwJiEKYY6jWa4d2nTQVIEhZIptnrVb1XY=
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 h1:yixxcjnhBmY0nkL253HFVIm0JsFHwrHdT3Yh6szTnfY=
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8/go.mod h1:jj3sYF3dwk5D+ghuXyeI3r5MFf+NT2An6/9dOA95KSI=
golang.org/x/image v0.0.0-20190321063152-3fc05d484e9f/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.17.0 h1:nTRVVdajgB8zCMZVsViyzhnMKPwYeroEERRC64JuLco=
golang.org/x/image v0.17.0/go.mod h1:4yyo5vMFQjVjUcVk4jEQcU9MGy/rulF5WvUILseCM2E=
Expand Down
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package main

import (
"time"

"github.com/bedrock-gophers/intercept/intercept"
"github.com/bedrock-gophers/inv/inv"
"github.com/bedrock-gophers/knockback/knockback"
"github.com/df-mc/dragonfly/server"
Expand All @@ -11,7 +14,6 @@ import (
"github.com/df-mc/dragonfly/server/player/chat"
"github.com/df-mc/dragonfly/server/world"
"github.com/sirupsen/logrus"
"time"
)

func main() {
Expand Down Expand Up @@ -40,7 +42,7 @@ func main() {
inv.PlaceFakeContainer(srv.World(), cube.Pos{0, 255, 0})

for srv.Accept(func(p *player.Player) {
inv.RedirectPlayerPackets(p, nil)
intercept.Intercept(p)
p.Handle(handler{})
p.SetGameMode(world.GameModeSurvival)
}) {
Expand Down

0 comments on commit 40d502d

Please sign in to comment.