Commit a4bcd6b6 authored by mercury233's avatar mercury233 Committed by nanahira

maybe fix the empty side

parent abbc562c
......@@ -276,6 +276,8 @@ public static class TcpHelper
public static YGOSharp.Deck deck;
public static void CtosMessage_UpdateDeck(YGOSharp.Deck deckFor)
{
if (deckFor.Main.Count == 0)
return;
deckStrings.Clear();
deck = deckFor;
Package message = new Package();
......
......@@ -22,16 +22,13 @@ public class Room : WindowServantSP
void onSelected()
{
Config.Set("deckInUse", superScrollView.selectedString);
if (selftype < realPlayers.Length && realPlayers[selftype] != null && realPlayers[selftype].getIfPreped())
{
TcpHelper.CtosMessage_HsNotReady();
TcpHelper.CtosMessage_UpdateDeck(new YGOSharp.Deck("deck/" + superScrollView.selectedString + ".ydk"));
TcpHelper.CtosMessage_HsReady();
}
else
{
Config.Set("deckInUse", superScrollView.selectedString);
}
}
void printFile()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment