Added a config option to invert the Ring of Magnetization's controls.

This commit is contained in:
Vasco Lavos committed 2015-12-03 21:09:22 +00:00
1 parent 423ac13eba
commit d4d7bef73e
2 files changed
+3 -1

No files matched your search

@@ -69,6 +69,7 @@ public final class ConfigHandler {
public static boolean stones18Enabled = true;
public static boolean ringOfOdinFireResist = true;
public static boolean enderStuff19Enabled = true;
public static boolean invertMagnetRing = false;
public static int flowerQuantity = 2;
public static int flowerDensity = 16;
@@ -28,6 +28,7 @@ import vazkii.botania.client.core.helper.IconHelper;
import vazkii.botania.common.Botania;
import vazkii.botania.common.block.ModBlocks;
import vazkii.botania.common.block.subtile.functional.SubTileSolegnolia;
import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.core.helper.ItemNBTHelper;
import vazkii.botania.common.core.helper.MathHelper;
import vazkii.botania.common.core.helper.Vector3;
@@ -99,7 +100,7 @@ public class ItemMagnetRing extends ItemBauble {
}
if(cooldown <= 0) {
if(!player.isSneaking()) {
if(player.isSneaking() == ConfigHandler.invertMagnetRing) {
double x = player.posX;
double y = player.posY -(player.worldObj.isRemote ? 1.62 : 0) + 0.75;
double z = player.posZ;