Fix issue with spaces in ChooseMapButton
This commit is contained in:
parent
1c96196359
commit
908b282fdf
@ -8,13 +8,6 @@ import nautilus.game.arcade.ArcadeManager;
|
||||
import nautilus.game.arcade.GameType;
|
||||
import nautilus.game.arcade.gui.privateServer.PrivateServerShop;
|
||||
|
||||
/**
|
||||
* Created by WilliamTiger.
|
||||
* All the code and any API's associated with it
|
||||
* are not to be used anywhere else without written
|
||||
* consent of William Burns. 2015.
|
||||
* 08/07/2015
|
||||
*/
|
||||
public class ChooseMapButton implements IButton
|
||||
{
|
||||
private ArcadeManager _arcadeManager;
|
||||
@ -34,10 +27,12 @@ public class ChooseMapButton implements IButton
|
||||
public void onClick(Player player, ClickType clickType)
|
||||
{
|
||||
_arcadeManager.GetGameCreationManager().MapSource = _gameType;
|
||||
if(_gameType.getMapSource() != null)
|
||||
if (_gameType.getMapSource() != null)
|
||||
{
|
||||
_arcadeManager.GetGameCreationManager().MapSource = _gameType.getMapSource()[0];
|
||||
}
|
||||
|
||||
_arcadeManager.GetGameCreationManager().MapPref = _map;
|
||||
_arcadeManager.GetGameCreationManager().MapPref = _map.replaceAll(" ", "");
|
||||
_arcadeManager.GetGame().setGame(_gameType, player, true);
|
||||
player.closeInventory();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user