mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Added a config option to disable bauble rendering. Closes #482
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user