mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 02:45:13 +00:00
Added a config option to invert the Ring of Magnetization's controls.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user