Skip to content

Commit

Permalink
Use smellofcurry Gopher Tunnel Branch
Browse files Browse the repository at this point in the history
  • Loading branch information
smell-of-curry committed Jul 29, 2024
1 parent 585d068 commit 3958b9b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"cSpell.words": [
"Debugln",
"Errorln",
"gophertunnel",
"Infoln",
"pokeb",
"raknet",
"Respawn",
"sandertv",
"XUID"
]
}
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ require (
)

replace github.com/sandertv/go-raknet => github.com/hashimthearab/go-raknet v1.14.2-0.20240712204703-9b99c862e9db

replace github.com/sandertv/gophertunnel => github.com/smell-of-curry/gophertunnel v1.39.1-0.20240729165205-ea468775426f
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3v
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sandertv/gophertunnel v1.39.1 h1:cqM5FGMf2T1PCHBEye6Hzj77v2pBlxgbhNkWeAd3cxA=
github.com/sandertv/gophertunnel v1.39.1/go.mod h1:uSaX7RbVaCcxsGAx2vyZnkT0M6kZFGCdAqLn0+wuKyY=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/smell-of-curry/gophertunnel v1.39.1-0.20240729165205-ea468775426f h1:jds6cEctOEkBubL3IHFDoIR35NvQ8CsxG9a1197KjQU=
github.com/smell-of-curry/gophertunnel v1.39.1-0.20240729165205-ea468775426f/go.mod h1:uSaX7RbVaCcxsGAx2vyZnkT0M6kZFGCdAqLn0+wuKyY=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
Expand Down
6 changes: 3 additions & 3 deletions handler/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var target = []uint32{
var ignored = []uint32{
packet.IDAnimate,
packet.IDSetActorData,
packet.IDMoveActorDelta,
packet.IDMoveDeltaActor,
packet.IDCreativeContent,
packet.IDCraftingData,
packet.IDBiomeDefinitionList,
Expand All @@ -29,7 +29,7 @@ var ignored = []uint32{
packet.IDSetActorMotion,
packet.IDUpdateAttributes,
packet.IDPlayerAuthInput,
packet.IDLevelChunk,
packet.IDFullChunkData,
packet.IDSubChunk,
packet.IDSubChunkRequest,
}
Expand All @@ -50,7 +50,7 @@ func registerHandlers() map[uint32][]handler.PacketHandler {
if proxy.ProxyInstance.Worlds != nil {
handlers[packet.IDSubChunkRequest] = []handler.PacketHandler{SubChunkRequestHandler{}}
handlers[packet.IDSubChunk] = append(handlers[packet.IDSubChunk], SubChunkHandlerBoarder{})
handlers[packet.IDLevelChunk] = []handler.PacketHandler{LevelChunkHandler{}}
handlers[packet.IDFullChunkData] = []handler.PacketHandler{LevelChunkHandler{}}
handlers[packet.IDInventoryTransaction] = []handler.PacketHandler{InventoryTransactionHandler{}}
}

Expand Down

0 comments on commit 3958b9b

Please sign in to comment.