Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,14 @@ func (c *conn) translatePacket(pk packet.Packet, serverSent bool) packet.Packet
for i := range pk.Entries {
pk.Entries[i].EntityUniqueID = c.translateUniqueID(pk.Entries[i].EntityUniqueID, serverSent)
}
case *packet.PrimitiveShapes:
for i := range pk.Shapes {
attachedEntityId := pk.Shapes[i].AttachedToEntityID
val, ok := attachedEntityId.Value()
if ok {
pk.Shapes[i].AttachedToEntityID = protocol.Option(int64(c.translateRuntimeID(uint64(val), serverSent)))
}
}
case *packet.RemoveActor:
pk.EntityUniqueID = c.translateUniqueID(pk.EntityUniqueID, serverSent)
case *packet.RemoveVolumeEntity:
Expand Down
54 changes: 37 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,42 +1,62 @@
module github.com/cooldogedev/spectrum-df

go 1.24.0

toolchain go1.24.1
go 1.26.0

require (
github.com/brentp/intintmap v0.0.0-20190211203843-30dc0ade9af9
github.com/brentp/intintmap v0.0.0-20251106190759-56907b1f8479
github.com/cooldogedev/spectral v0.0.5
github.com/cooldogedev/spectrum v0.0.43
github.com/df-mc/dragonfly v0.10.11-0.20251229144828-00510a3ec3b8
github.com/df-mc/dragonfly v0.10.15-0.20260701213351-026c0621cf9b
github.com/golang/snappy v1.0.0
github.com/google/uuid v1.6.0
github.com/quic-go/quic-go v0.54.0
github.com/sandertv/gophertunnel v1.52.3-0.20251229134550-877d232cdab3
github.com/sandertv/gophertunnel v1.57.1-0.20260701232704-c7387286375e
)

require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/coreos/go-oidc/v3 v3.17.0 // indirect
github.com/df-mc/go-nethernet v1.0.17 // indirect
github.com/df-mc/go-playfab v1.0.0 // indirect
github.com/df-mc/go-xsapi v1.0.1 // indirect
github.com/df-mc/goleveldb v1.1.9 // indirect
github.com/df-mc/jsonc v1.0.5 // indirect
github.com/df-mc/worldupgrader v1.0.20 // indirect
github.com/df-mc/worldupgrader v1.0.21 // indirect
github.com/francoispqt/gojay v1.2.13 // indirect
github.com/go-gl/mathgl v1.2.0 // indirect
github.com/go-jose/go-jose/v4 v4.1.2 // indirect
github.com/klauspost/compress v1.18.1 // indirect
github.com/go-jose/go-jose/v4 v4.1.4 // indirect
github.com/klauspost/compress v1.18.4 // indirect
github.com/muhammadmuzzammil1998/jsonc v1.0.0 // indirect
github.com/onsi/gomega v1.38.2 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/sandertv/go-raknet v1.14.3-0.20250305181847-6af3e95113d6 // indirect
github.com/pion/datachannel v1.6.0 // indirect
github.com/pion/dtls/v3 v3.1.2 // indirect
github.com/pion/ice/v4 v4.2.1 // indirect
github.com/pion/interceptor v0.1.44 // indirect
github.com/pion/logging v0.2.4 // indirect
github.com/pion/mdns/v2 v2.1.0 // indirect
github.com/pion/randutil v0.1.0 // indirect
github.com/pion/rtcp v1.2.16 // indirect
github.com/pion/rtp v1.10.1 // indirect
github.com/pion/sctp v1.9.2 // indirect
github.com/pion/sdp/v3 v3.0.18 // indirect
github.com/pion/srtp/v3 v3.0.10 // indirect
github.com/pion/stun/v3 v3.1.1 // indirect
github.com/pion/transport/v4 v4.0.1 // indirect
github.com/pion/turn/v4 v4.1.4 // indirect
github.com/pion/webrtc/v4 v4.2.10-0.20260224155637-aa3b95c72dd2 // indirect
github.com/sandertv/go-raknet v1.15.1-0.20260112202637-beca0b10c217 // indirect
github.com/segmentio/fasthash v1.0.3 // indirect
github.com/wlynxg/anet v0.0.5 // indirect
go.uber.org/mock v0.6.0 // indirect
golang.org/x/crypto v0.42.0 // indirect
golang.org/x/crypto v0.48.0 // indirect
golang.org/x/exp v0.0.0-20250911091902-df9299821621 // indirect
golang.org/x/mod v0.28.0 // indirect
golang.org/x/net v0.44.0 // indirect
golang.org/x/mod v0.32.0 // indirect
golang.org/x/net v0.50.0 // indirect
golang.org/x/oauth2 v0.31.0 // indirect
golang.org/x/sync v0.17.0 // indirect
golang.org/x/sys v0.36.0 // indirect
golang.org/x/text v0.29.0 // indirect
golang.org/x/tools v0.37.0 // indirect
golang.org/x/sync v0.19.0 // indirect
golang.org/x/sys v0.41.0 // indirect
golang.org/x/text v0.34.0 // indirect
golang.org/x/time v0.10.0 // indirect
golang.org/x/tools v0.41.0 // indirect
)
Loading
Loading