mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-17 11:05:06 +00:00
configurable performance tweak
This commit is contained in:
2 files changed
+8
-1
No files matched your search
@@ -23,7 +23,7 @@ public enum ClassEdit {
|
||||
"cpw.mods.fml.common.registry.FMLControlledNamespacedRegistry"),
|
||||
SpaceCoreModInfoGenerator(new SpaceCoreModInfoGenerator(), () -> true,
|
||||
"com.spacechase0.minecraft.spacecore.mcp.ModInfoGenerator"),
|
||||
GameDataAccelerator(new GameDataAccelerator(), () -> true, "cpw.mods.fml.common.registry.GameData"),
|
||||
GameDataAccelerator(new GameDataAccelerator(), () -> GeneralConfig.enableRegistryPerformanceTweak, "cpw.mods.fml.common.registry.GameData"),
|
||||
;
|
||||
|
||||
private static final Map<String, List<ClassEdit>> editMap;
|
||||
|
||||
@@ -38,6 +38,13 @@ public class GeneralConfig {
|
||||
@Config.Comment("Extend Potion IDs. Vanilla limit is 32, new limit is 65536.")
|
||||
@Config.DefaultBoolean(true)
|
||||
public static boolean extendPotion;
|
||||
|
||||
@Config.Comment("Improves the speed of the block registry by multiple orders of magnitudes. (not thoroughly tested yet)\n" +
|
||||
"It's highly recommended to leave this enabled, especially when using a lot of IDs.\n" +
|
||||
"With this disabled, registering 1 million blocks on a test system took 80 minutes\n" +
|
||||
"With this enabled, registering the same million blocks took 7 seconds")
|
||||
@Config.DefaultBoolean(true)
|
||||
public static boolean enableRegistryPerformanceTweak;
|
||||
@Config.Comment(
|
||||
"Extends the maximum redstone signal strength.\n" + "Only has effect with extendBlockItem enabled.\n" +
|
||||
"WARNING: THIS IS HERE ONLY FOR FUN, IT WILL DEFINITELY CORRUPT YOUR WORLD!")
|
||||
|
||||
Reference in new issue
Block a user