Added a config option to disable the animation when an item is charging on a mana pool.

This commit is contained in:
Vasco Lavos committed 2014-07-15 14:40:43 +01:00
1 parent 1d4612857a
commit b8500e59a9
3 files changed
+7 -1

No files matched your search

@@ -40,6 +40,7 @@ import vazkii.botania.client.lib.LibResources;
import vazkii.botania.common.Botania;
import vazkii.botania.common.block.ModBlocks;
import vazkii.botania.common.block.tile.TileMod;
import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.core.handler.ManaNetworkHandler;
import vazkii.botania.common.core.helper.Vector3;
import vazkii.botania.common.item.ModItems;
@@ -217,7 +218,7 @@ public class TilePool extends TileMod implements IManaPool, IKeyLocked {
if(didSomething) {
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
if(worldObj.isRemote && worldObj.rand.nextInt(5) == 0) {
if(worldObj.isRemote && ConfigHandler.chargingAnimationEnabled && worldObj.rand.nextInt(5) == 0) {
Vector3 itemVec = Vector3.fromTileEntity(this).add(0.5, 0.5 + Math.random() * 0.3, 0.5);
Vector3 tileVec = Vector3.fromTileEntity(this).add(0.2 + Math.random() * 0.6, 0, 0.2 + Math.random() * 0.6);
LightningHandler.spawnLightningBolt(worldObj, outputting ? tileVec : itemVec, outputting ? itemVec : tileVec, 80, worldObj.rand.nextLong(), 0x4400799c, 0x4400C6FF);
@@ -35,6 +35,7 @@ public final class ConfigHandler {
public static boolean blockBreakParticles = true;
public static boolean blockBreakParticlesTool = true;
public static boolean elfPortalParticlesEnabled = true;
public static boolean chargingAnimationEnabled = true;
public static boolean matrixMode = false;
public static boolean referencesEnabled = true;
public static boolean baublesInventoryButton = true;
@@ -103,6 +104,9 @@ public final class ConfigHandler {
desc = "Set to false to disable the particles in the elven portal.";
elfPortalParticlesEnabled = loadPropBool("elfPortal.particles.enabled", desc, elfPortalParticlesEnabled);
desc = "Set to false to disable the animation when an item is charging on top of a mana pool.";
chargingAnimationEnabled = loadPropBool("chargeAnimation.enabled", desc, chargingAnimationEnabled);
desc = "Set to true if you are the chosen one. For lovers of glitch art and just general mad people.";
matrixMode = loadPropBool("matrixMode.enabled", desc, matrixMode);
+1
View File
@@ -89,6 +89,7 @@ lexicon.render.3D=3D Lexicon Render
powerSystem.subtle=Use Subtle Power System
pylonModel.old=Use Old Pylon Model
elfPortal.particles.enabled=Enable Portal Particles
chargeAnimation.enabled=Charging Animation Enabled
matrixMode.enabled=Enable Matrix Mode
references.enabled=Enable Tooltip References
baublesButton.enabled=Baubles Button Enabled