mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
route all capitalize calls through a new method
This commit is contained in:
@@ -28,8 +28,8 @@ import forge.properties.ForgeConstants;
|
||||
import forge.properties.ForgePreferences;
|
||||
import forge.properties.ForgePreferences.FPref;
|
||||
import forge.util.OperatingSystem;
|
||||
import forge.util.WordUtil;
|
||||
import forge.view.FView;
|
||||
import org.apache.commons.lang3.text.WordUtils;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.*;
|
||||
@@ -1084,7 +1084,7 @@ public class FSkin {
|
||||
allSkins = new ArrayList<>();
|
||||
final List<String> skinDirectoryNames = getSkinDirectoryNames();
|
||||
for (String skinDirectoryName : skinDirectoryNames) {
|
||||
allSkins.add(WordUtils.capitalize(skinDirectoryName.replace('_', ' ')));
|
||||
allSkins.add(WordUtil.capitalize(skinDirectoryName.replace('_', ' ')));
|
||||
}
|
||||
Collections.sort(allSkins);
|
||||
}
|
||||
|
||||
@@ -12,8 +12,8 @@ import forge.game.*;
|
||||
import forge.properties.ForgeConstants;
|
||||
import forge.tournament.system.*;
|
||||
import forge.util.TextUtil;
|
||||
import forge.util.WordUtil;
|
||||
import forge.util.storage.IStorage;
|
||||
import org.apache.commons.lang3.text.WordUtils;
|
||||
import org.apache.commons.lang3.time.StopWatch;
|
||||
|
||||
import forge.deck.Deck;
|
||||
@@ -75,7 +75,7 @@ public class SimulateMatch {
|
||||
|
||||
GameType type = GameType.Constructed;
|
||||
if (params.containsKey("f")) {
|
||||
type = GameType.valueOf(WordUtils.capitalize(params.get("f").get(0)));
|
||||
type = GameType.valueOf(WordUtil.capitalize(params.get("f").get(0)));
|
||||
}
|
||||
|
||||
GameRules rules = new GameRules(type);
|
||||
|
||||
Reference in New Issue
Block a user