fixed issues where server refused to start on laptop, fixed issue whith dictkeys not beeing found, fixed issue where client was spaming cardplaced event to server but lost capabillity of sending said event at all

This commit is contained in:
steev 2024-01-14 19:12:22 +01:00
parent 0602e638f3
commit b98b9821dc
3 changed files with 7 additions and 6 deletions

View File

@ -120,15 +120,16 @@ class App:
# TODO: send place card event to server
# resets the currently selected card in order to prevent it getting moved
try:
card.setDragging(False)
# TODO: send place card event to server
# resets the currently selected card in order to prevent it getting moved
PlaceCard(self.__tcpClient, card) # tells the server that the player placed this card
if card == selectedCard:
card.setDragging(False)
# TODO: send place card event to server
# resets the currently selected card in order to prevent it getting moved
PlaceCard(self.__tcpClient, card) # tells the server that the player placed this card
except Exception as e:
print(f"failed to place card on server due to error: {e}")
if not card == None:
card = None
if not selectedCard == None:
selectedCard = None
# sets the running state for the gameloop
def setRunning(self, running:bool):