private bool PacketWasDeferred(Packet packet) { if (packet is PlayerActionPacket playerAction) { if (!playerAction.PlayerMustBeInRangeToReceive) { return(false); } Int3 actionChunk = loadedChunks.GetChunk(playerAction.ActionPosition); if (!loadedChunks.IsLoadedChunk(actionChunk)) { Console.WriteLine("Action was deferred, chunk not loaded: " + actionChunk); AddPacketToDeferredMap(playerAction, actionChunk); return(true); } } return(false); }