mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +00:00
Don't parse category names as regular expressions in FieldWrapper.MapWrapper (#4334)
This commit is contained in:
1 parent
52702e5cc9
commit
cb051f7893
2 files changed
+8
-2
No files matched your search
@@ -18,6 +18,7 @@ import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@Mod(modid = ConfigTest.MODID, name = "ConfigTest", version = "1.0", acceptableRemoteVersions = "*")
|
||||
@@ -150,6 +151,9 @@ public class ConfigTest
|
||||
@RequiresMcRestart
|
||||
public static Map<String, Integer[]> theMap;
|
||||
|
||||
@Name("regex(test]")
|
||||
public static Map<String, String> regexText = new HashMap<>();
|
||||
|
||||
static
|
||||
{
|
||||
theMap = Maps.newHashMap();
|
||||
@@ -161,6 +165,7 @@ public class ConfigTest
|
||||
array[x] = i + x;
|
||||
}
|
||||
theMap.put("" + i, array);
|
||||
regexText.put("" + i, "" + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user