DINGO ATE MY BABY
This commit is contained in:
parent
ec3bc7cc38
commit
1fd5c51f03
@ -294,6 +294,8 @@ public abstract class Game implements Listener
|
||||
}
|
||||
if (Manager.GetGameCreationManager().MapPref != null)
|
||||
{
|
||||
System.out.println("Map Preference: " + Manager.GetGameCreationManager().MapPref);
|
||||
|
||||
HashMap<GameType, ArrayList<String>> matches = new HashMap<GameType, ArrayList<String>>();
|
||||
for (GameType game : _files.keySet())
|
||||
{
|
||||
@ -302,7 +304,7 @@ public abstract class Game implements Listener
|
||||
{
|
||||
if (cur.toLowerCase().contains(Manager.GetGameCreationManager().MapPref.toLowerCase()))
|
||||
{
|
||||
if(game.toString().toLowerCase().contains(Manager.GetGameCreationManager().MapSource.toLowerCase()))
|
||||
if(game.GetName().toLowerCase().contains(Manager.GetGameCreationManager().MapSource.toLowerCase()))
|
||||
{
|
||||
list.add(cur);
|
||||
System.out.print("Map Preference: " + cur);
|
||||
@ -318,6 +320,10 @@ public abstract class Game implements Listener
|
||||
Manager.GetGameCreationManager().MapPref = null;
|
||||
Manager.GetGameCreationManager().MapSource = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
System.out.println("Map Preference: None");
|
||||
}
|
||||
WorldData = new WorldData(this);
|
||||
|
||||
//Stat Trackers
|
||||
|
@ -36,6 +36,7 @@ public class ChooseMapButton implements IButton
|
||||
_arcadeManager.GetGameCreationManager().MapSource = _gameType.GetName();
|
||||
if(_gameType.getMapSource() != null)
|
||||
_arcadeManager.GetGameCreationManager().MapSource = _gameType.getMapSource()[0].GetName();
|
||||
|
||||
_arcadeManager.GetGameCreationManager().MapPref = _map;
|
||||
_arcadeManager.GetGame().setGame(_gameType, player, true);
|
||||
player.closeInventory();
|
||||
|
@ -167,6 +167,9 @@ public class GameCreationManager implements Listener
|
||||
|
||||
HashMap<String, ChatColor> pastTeams = null;
|
||||
|
||||
System.out.println(_nextGame == null ? "Next Game = null" : "Next Game = " + _nextGame.GetName());
|
||||
System.out.println(MapPref == null ? "Map Pref = null" : "Map Pref = " + MapPref);
|
||||
|
||||
//Chosen Game
|
||||
if (_nextGame != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user