summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/state/state.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2024-11-28 18:00:50 +0200
committerKyren223 <Kyren223@proton.me>2024-11-28 18:00:50 +0200
commitd0356edef4dc0a14304b8890e8152911740ff87a (patch)
tree9f96b2e1b591d9d86970db9102abae04055a5ac7 /internal/client/ui/core/state/state.go
parentc3f8131caf597dc028c08c8dd9f2f65a213e580d (diff)
Added position to networks
Diffstat (limited to 'internal/client/ui/core/state/state.go')
-rw-r--r--internal/client/ui/core/state/state.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/client/ui/core/state/state.go b/internal/client/ui/core/state/state.go
index eeba245..e40cdc9 100644
--- a/internal/client/ui/core/state/state.go
+++ b/internal/client/ui/core/state/state.go
@@ -2,13 +2,10 @@ package state
import (
"github.com/kyren223/eko/internal/packet"
- "github.com/kyren223/eko/pkg/snowflake"
)
type state struct {
- Networks map[snowflake.ID]packet.FullNetwork
+ Networks []packet.FullNetwork
}
-var State state = state{
- Networks: make(map[snowflake.ID]packet.FullNetwork),
-}
+var State state = state{}