Skip to content

Commit

Permalink
portal: Update to the latest minecraft version
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Jun 1, 2023
1 parent 71bd2a4 commit 87f4407
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/go-gl/mathgl v1.0.0
github.com/google/uuid v1.3.0
github.com/mattn/go-colorable v0.1.11
github.com/sandertv/gophertunnel v1.28.1
github.com/sandertv/gophertunnel v1.29.0
github.com/scylladb/go-set v1.0.3-0.20200225121959-cc7b2070d91e
github.com/sirupsen/logrus v1.9.0
go.uber.org/atomic v1.10.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sandertv/go-raknet v1.12.0 h1:olUzZlIJyX/pgj/mrsLCZYjKLNDsYiWdvQ4NIm3z0DA=
github.com/sandertv/go-raknet v1.12.0/go.mod h1:Gx+WgZBMQ0V2UoouGoJ8Wj6CDrMBQ4SB2F/ggpl5/+Y=
github.com/sandertv/gophertunnel v1.28.1 h1:I2gmAJ3Se+iT0a99rLU3EKLshqFDvCnrT05fUFv9rGk=
github.com/sandertv/gophertunnel v1.28.1/go.mod h1:ekREo7U9TPHh86kbuPMaWA93NMyWsfVvP/iNT3XhAb8=
github.com/sandertv/gophertunnel v1.29.0 h1:P9pOrt1dVfrrDmyw/sUZ1kKWGHWPm7sI+hl2TEtefrE=
github.com/sandertv/gophertunnel v1.29.0/go.mod h1:ekREo7U9TPHh86kbuPMaWA93NMyWsfVvP/iNT3XhAb8=
github.com/scylladb/go-set v1.0.3-0.20200225121959-cc7b2070d91e h1:7q6NSFZDeGfvvtIRwBrU/aegEYJYmvev0cHAwo17zZQ=
github.com/scylladb/go-set v1.0.3-0.20200225121959-cc7b2070d91e/go.mod h1:DkpGd78rljTxKAnTDPFqXSGxvETQnJyuSOQwsHycqfs=
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
Expand Down
8 changes: 4 additions & 4 deletions session/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ func (t *translator) translatePacket(pk packet.Packet) {
pk.PlayerRuntimeID = t.translateRuntimeID(pk.PlayerRuntimeID)
case *packet.Event:
pk.EntityRuntimeID = t.translateRuntimeID(pk.EntityRuntimeID)
switch data := pk.EventData.(type) {
case *protocol.MobKilledEventData:
switch data := pk.Event.(type) {
case *protocol.MobKilledEvent:
data.KillerEntityUniqueID = t.translateUniqueID(data.KillerEntityUniqueID)
data.VictimEntityUniqueID = t.translateUniqueID(data.VictimEntityUniqueID)
case *protocol.BossKilledEventData:
case *protocol.BossKilledEvent:
data.BossEntityUniqueID = t.translateUniqueID(data.BossEntityUniqueID)
case *protocol.PetDiedEventData:
case *protocol.PetDiedEvent:
data.KillerEntityUniqueID = t.translateUniqueID(data.KillerEntityUniqueID)
data.PetEntityUniqueID = t.translateUniqueID(data.PetEntityUniqueID)
}
Expand Down

0 comments on commit 87f4407

Please sign in to comment.