mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Fixed a bug that game client tries to send turning mode packet when there is no socketThread
- add a if statement to check if socketThread is initialized before sending packet. #story[1278]
This commit is contained in:
@@ -461,10 +461,12 @@ public class GameClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void sendToggleTurningModePacket() {
|
public void sendToggleTurningModePacket() {
|
||||||
|
if (socketThread != null) {
|
||||||
if (gameKeyBind.isContinuouslyTurning()) {
|
if (gameKeyBind.isContinuouslyTurning()) {
|
||||||
socketThread.sendBoatAction(BoatAction.CONTINUOUSLY_TURNING);
|
socketThread.sendBoatAction(BoatAction.CONTINUOUSLY_TURNING);
|
||||||
} else {
|
} else {
|
||||||
socketThread.sendBoatAction(BoatAction.DEFAULT_TURNING);
|
socketThread.sendBoatAction(BoatAction.DEFAULT_TURNING);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user