File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed
sdk/src/server-api/sc/framework/plugins Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import sc.api.plugins.ITeam
8
8
import sc.api.plugins.host.IPlayerListener
9
9
import sc.framework.plugins.protocol.MoveRequest
10
10
import sc.protocol.room.RoomMessage
11
- import java.util.*
12
11
13
12
private val logger = LoggerFactory .getLogger(Player ::class .java)
14
13
@@ -63,7 +62,7 @@ open class Player @JvmOverloads constructor(
63
62
}
64
63
65
64
fun notifyListeners (o : RoomMessage ) {
66
- for (listener in this . listeners) {
65
+ for (listener in ArrayList ( listeners) ) {
67
66
listener.onPlayerEvent(o)
68
67
}
69
68
}
Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ public synchronized void step(boolean forced) throws GameRoomException {
408
408
}
409
409
if (isPauseRequested ()) {
410
410
logger .info ("Stepping {}" , game );
411
- ((AbstractGame <Player >) game ).afterPause ();
411
+ ((AbstractGame <? >) game ).afterPause ();
412
412
} else {
413
413
logger .warn ("Can't step unpaused {}" , game );
414
414
}
Original file line number Diff line number Diff line change @@ -136,11 +136,6 @@ protected void onObject(@NotNull ProtocolPacket message) throws UnprocessedPacke
136
136
logger .debug ("Stopping {} because of error" , this );
137
137
stop ();
138
138
}
139
-
140
- if (message instanceof RemovedFromGame ) {
141
- logger .debug ("Stopping {} because of received RemovedFromGame message" , this );
142
- stop ();
143
- }
144
139
}
145
140
146
141
}
You can’t perform that action at this time.
0 commit comments