Added a config option to disable bauble rendering. Closes #482

This commit is contained in:
Lizbeth Rika committed 2015-01-18 16:31:03 +00:00
1 parent e22d8dd6ac
commit 0fcb96c50d
3 files changed
+9 -8

No files matched your search

@@ -28,6 +28,7 @@ import vazkii.botania.api.item.IBaubleRender;
import vazkii.botania.api.item.IBaubleRender.RenderType;
import vazkii.botania.client.core.helper.ShaderHelper;
import vazkii.botania.client.lib.LibResources;
import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.item.equipment.bauble.ItemFlightTiara;
import baubles.common.container.InventoryBaubles;
import baubles.common.lib.PlayerHandler;
@@ -37,6 +38,9 @@ public final class BaubleRenderHandler {
@SubscribeEvent
public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
if(!ConfigHandler.renderBaubles)
return;
EntityPlayer player = event.entityPlayer;
InventoryBaubles inv = PlayerHandler.getPlayerBaubles(player);
@@ -38,6 +38,7 @@ public final class ConfigHandler {
public static boolean chargingAnimationEnabled = true;
public static boolean useVanillaParticleLimiter = true;
public static boolean silentSpreaders = false;
public static boolean renderBaubles = true;
public static boolean altFlowerTextures = false;
public static boolean matrixMode = false;
@@ -111,6 +112,9 @@ public final class ConfigHandler {
desc = "Set to true to disable the mana spreader shooting sound.";
silentSpreaders = loadPropBool("manaSpreaders.silent", desc, silentSpreaders);
desc = "Set to false to disable rendering of baubles in the player.";
renderBaubles = loadPropBool("baubleRender.enabled", desc, renderBaubles);
desc = "Set to true to use alternate flower textures by Futureazoo, not all flowers are textured. http://redd.it/2b3o3f";
altFlowerTextures = loadPropBool("flowerTextures.alt", desc, altFlowerTextures);