GregTech CE Unofficial

GregTech CE Unofficial

412k Downloads

[Suggestion] Add config option to enable tiers past UHV

Annwan opened this issue ยท 1 comments

commented

Is your feature request related to a problem? Please describe.
I would like to enable machine tiers past UHV in my modpack, currently it requires editing the source code and using a patched version of the mod. Which is long and tedious to setup.

Describe the solution you'd like
When reading through the code I found it is all controlled by the boolean flag HT in gregtech.api.GTValues

public static boolean HT = false;

Would it be possible to expose it as a configuration option?

commented

Found other reference about this value but it's unused on GTCEu itself.

@SuppressWarnings("unused")
public static void setMidTier(String key, boolean enabled) {
MID_TIER.put(key, enabled);
}
@SuppressWarnings("unused")
public static void setHighTier(String key, boolean enabled) {
HIGH_TIER.put(key, enabled);
GTValues.HT = enabled || HIGH_TIER.containsValue(true);
}

These functions are control Maps and there's comment on definition.

// Used for addons if they wish to disable certain tiers of machines
private static final Map<String, Boolean> MID_TIER = new HashMap<>();
private static final Map<String, Boolean> HIGH_TIER = new HashMap<>();