Fix Null map name when map voting was happening
This commit is contained in:
parent
a653e66863
commit
d617744bcf
@ -22,7 +22,7 @@ public class MapCommand extends CommandBase<ArcadeManager>
|
|||||||
{
|
{
|
||||||
Game game = Plugin.GetGame();
|
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?"));
|
caller.sendMessage(F.main(Plugin.getName(), "Is this the work of an enemy stand? There's no map?"));
|
||||||
return;
|
return;
|
||||||
|
@ -50,8 +50,8 @@ public class WorldData
|
|||||||
public int MinY = -1;
|
public int MinY = -1;
|
||||||
public int MaxY = 256;
|
public int MaxY = 256;
|
||||||
|
|
||||||
public String MapName = "Null";
|
public String MapName;
|
||||||
public String MapAuthor = "Null";
|
public String MapAuthor;
|
||||||
|
|
||||||
public GameType Game = null;
|
public GameType Game = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user