From cec40ee1ec236829e774e3f7f82a17d5d5bffcb0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 1 Mar 2026 22:08:01 +0100 Subject: remove nesting in game/server data packets --- server/protocol/src/lib.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'server/protocol/src/lib.rs') diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index db69f6be..f90dd351 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -221,12 +221,8 @@ pub enum PacketC { Joined { id: PlayerID, }, - ServerData { - data: Box, - }, - GameData { - data: Box, - }, + ServerData(Serverdata), + GameData(Gamedata), AddPlayer { id: PlayerID, position: Vec2, -- cgit v1.3