Skip to content

Commit

Permalink
5.1.60: Change Registry Map to EnumMap #36
Browse files Browse the repository at this point in the history
  • Loading branch information
Verclene committed Feb 24, 2016
1 parent 528946b commit 706d4af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/main/java/littleMaidMobX/LMM_EnumSound.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@ public static LMM_EnumSound getEnumSound(int pindex) {
}
return Null;
}


}
4 changes: 2 additions & 2 deletions src/main/java/littleMaidMobX/LMM_LittleMaidMobNX.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
public class LMM_LittleMaidMobNX {

public static final String DOMAIN = "lmmx";
public static final String VERSION = "5.1.59";
public static final String VERSION_FORSITE = "NX5 Build 59";
public static final String VERSION = "5.1.60";
public static final String VERSION_FORSITE = "NX5 Build 60";
public static final String ACCEPTED_MCVERSION = "[1.8,1.8.9]";
public static final int VERSION_CODE = 14;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
Expand All @@ -21,7 +22,7 @@ public class LMMNX_SoundRegistry {
public static final String DEFAULT_TEXTURE_REGISTRATION_KEY = "!#DEFAULT#!";

// Sound→((テクスチャ名+色)+パス)の順.
private Map<LMM_EnumSound, HashMap<Pair<String, Integer>, String>> registerMap;
private EnumMap<LMM_EnumSound, HashMap<Pair<String, Integer>, String>> registerMap;
// 実際の参照パス
private Map<String, List<String>> pathMap;

Expand All @@ -31,7 +32,7 @@ public class LMMNX_SoundRegistry {
private static LMMNX_SoundRegistry instR = new LMMNX_SoundRegistry();

private LMMNX_SoundRegistry() {
registerMap = new HashMap<LMM_EnumSound, HashMap<Pair<String,Integer>,String>>();
registerMap = new EnumMap<LMM_EnumSound, HashMap<Pair<String,Integer>,String>>(LMM_EnumSound.class);
pathMap = new HashMap<String, List<String>>();
}

Expand Down

0 comments on commit 706d4af

Please sign in to comment.