Fix Null map name when map voting was happening

This commit is contained in:
Sam 2018-07-26 15:33:43 +01:00 committed by Alexander Meech
parent a653e66863
commit d617744bcf
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ public class MapCommand extends CommandBase<ArcadeManager>
{
Game game = Plugin.GetGame();
if (game == null || game.WorldData == null)
if (game == null || game.WorldData == null || game.WorldData.MapName == null)
{
caller.sendMessage(F.main(Plugin.getName(), "Is this the work of an enemy stand? There's no map?"));
return;

View File

@ -50,8 +50,8 @@ public class WorldData
public int MinY = -1;
public int MaxY = 256;
public String MapName = "Null";
public String MapAuthor = "Null";
public String MapName;
public String MapAuthor;
public GameType Game = null;