Skip to content

Commit

Permalink
Merge pull request MegaMek#4016 from Sleet01/Fix_AbstractClient_calls…
Browse files Browse the repository at this point in the history
…_in_gamethreads

Update to match latest .20 code: Fix MekHQ GameThreads.run
  • Loading branch information
Sleet01 authored Apr 20, 2024
2 parents dd037bc + bfabb7c commit 483059c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion MekHQ/src/mekhq/AtBGameThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package mekhq;

import megamek.client.AbstractClient;
import megamek.client.Client;
import megamek.client.bot.BotClient;
import megamek.client.bot.princess.Princess;
Expand Down Expand Up @@ -76,7 +77,7 @@ public void run() {
client.addCloseClientListener(this);

if (swingGui != null) {
for (Client client2 : swingGui.getLocalBots().values()) {
for (AbstractClient client2 : swingGui.getLocalBots().values()) {
client2.die();
}
swingGui.getLocalBots().clear();
Expand Down
3 changes: 2 additions & 1 deletion MekHQ/src/mekhq/GameThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package mekhq;

import megamek.client.AbstractClient;
import megamek.client.Client;
import megamek.client.CloseClientListener;
import megamek.client.bot.BotClient;
Expand Down Expand Up @@ -89,7 +90,7 @@ public void run() {
client.addCloseClientListener(this);

if (swingGui != null) {
for (Client client2 : swingGui.getLocalBots().values()) {
for (AbstractClient client2 : swingGui.getLocalBots().values()) {
client2.die();
}
swingGui.getLocalBots().clear();
Expand Down

0 comments on commit 483059c

Please sign in to comment.