mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +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() {
|
||||
|
||||
Reference in new issue
Block a user