mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-04 14:31:34 +01:00
[#930] Null check to WorldTimes#updateState
This commit is contained in:
parent
42464d503e
commit
2fc8c7c29b
@ -77,6 +77,8 @@ public class WorldTimes {
|
||||
* @param changeTime Epoch ms the change occurred.
|
||||
*/
|
||||
public void updateState(String worldName, String gameMode, long changeTime) {
|
||||
if (worldName == null || gameMode == null) return;
|
||||
|
||||
GMTimes currentGMTimes = times.get(currentWorld);
|
||||
if (currentWorld.equals(worldName)) {
|
||||
currentGMTimes.changeState(gameMode, changeTime);
|
||||
|
Loading…
Reference in New Issue
Block a user