Puuuuuush

This commit is contained in:
brausjonas
2023-04-10 15:47:19 +02:00
parent 1435baa2e5
commit 76b160e611
6 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -24,8 +24,10 @@ public class Server
//A Formatter for date and time log outputs
public void deleteRoom(String code)
{
rooms.get(code).closeRoom();
Room r = rooms.get(code);
r.closeRoom();
rooms.remove(code);
publicRooms.remove(r);
//LOG
System.out.println("Room " + code + " successfully deleted");