mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Add config option for the colored heart renderer (#118)
* HeartRenderCFG * Minor nits, bump deps * don't register heart renderer at all if config is off * avoid double negation in the setting name --------- Co-authored-by: ah-OOG-ah <[email protected]> Co-authored-by: Alexdoru <[email protected]>
This commit is contained in:
3 files changed
+11
-4
No files matched your search
@@ -39,6 +39,7 @@ import tconstruct.library.accessory.IAccessoryModel;
|
||||
import tconstruct.library.client.TConstructClientRegistry;
|
||||
import tconstruct.library.crafting.ModifyBuilder;
|
||||
import tconstruct.tools.TinkerTools;
|
||||
import tconstruct.util.config.PHConstruct;
|
||||
import tconstruct.world.TinkerWorld;
|
||||
|
||||
public class ArmorProxyClient extends ArmorProxyCommon {
|
||||
@@ -69,9 +70,11 @@ public class ArmorProxyClient extends ArmorProxyCommon {
|
||||
registerManualIcons();
|
||||
registerManualRecipes();
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
final HealthBarRenderer healthBarRenderer = new HealthBarRenderer();
|
||||
MinecraftForge.EVENT_BUS.register(healthBarRenderer);
|
||||
FMLCommonHandler.instance().bus().register(healthBarRenderer);
|
||||
if (PHConstruct.coloredHeartRender) {
|
||||
final HealthBarRenderer healthBarRenderer = new HealthBarRenderer();
|
||||
MinecraftForge.EVENT_BUS.register(healthBarRenderer);
|
||||
FMLCommonHandler.instance().bus().register(healthBarRenderer);
|
||||
}
|
||||
}
|
||||
|
||||
private void registerManualIcons() {
|
||||
|
||||
@@ -274,6 +274,9 @@ public class PHConstruct {
|
||||
.getBoolean(false);
|
||||
|
||||
// Experimental functionality
|
||||
coloredHeartRender = config
|
||||
.get("Experimental", "Renders one row of colored hearts instead of multiple rows of hearts", true)
|
||||
.getBoolean(true);
|
||||
throwableSmeltery = config.get("Experimental", "Items can be thrown into smelteries", true).getBoolean(true);
|
||||
meltableHorses = config.get("Experimental", "Allow horses to be melted down for glue", true).getBoolean(true);
|
||||
meltableVillagers = config.get("Experimental", "Allow villagers to be melted down for emeralds", true)
|
||||
@@ -481,6 +484,7 @@ public class PHConstruct {
|
||||
public static boolean genOresFlat;
|
||||
|
||||
// Experimental functionality
|
||||
public static boolean coloredHeartRender;
|
||||
public static boolean throwableSmeltery;
|
||||
public static boolean meltableHorses;
|
||||
public static boolean meltableVillagers;
|
||||
|
||||
Reference in new issue
Block a user