[#930] Null check to WorldTimes#updateState

This commit is contained in:
Rsl1122 2019-02-25 10:36:53 +02:00
parent 42464d503e
commit 2fc8c7c29b

View File

@ -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);