mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
Allow both Yeta Wrench mouse actions to be off
if there's a keybinding set.
This commit is contained in:
1 parent
ff423ae92a
commit
075c619e4b
2 files changed
+11
-6
No files matched your search
@@ -723,11 +723,6 @@ public final class Config {
|
||||
|
||||
vacuumChestRange = config.get(sectionEfficiency.name, "vacumChestRange", vacuumChestRange, "The range of the vacuum chest").getInt(vacuumChestRange);
|
||||
|
||||
if(!useSneakMouseWheelYetaWrench && !useSneakRightClickYetaWrench) {
|
||||
Log.warn("Both useSneakMouseWheelYetaWrench and useSneakRightClickYetaWrench are set to false. Enabling mouse wheel.");
|
||||
useSneakMouseWheelYetaWrench = true;
|
||||
}
|
||||
|
||||
reinforcedObsidianEnabled = config.get(sectionItems.name, "reinforcedObsidianEnabled", reinforcedObsidianEnabled,
|
||||
"When set to false reinforced obsidian is not craftable.").getBoolean(reinforcedObsidianEnabled);
|
||||
reinforcedObsidianUseDarkSteelBlocks = config.get(sectionRecipe.name, "reinforcedObsidianUseDarkSteelBlocks", reinforcedObsidianUseDarkSteelBlocks,
|
||||
@@ -1330,6 +1325,13 @@ public final class Config {
|
||||
10000.0f, "Internal power used per extract operation (independent of stack size)");
|
||||
}
|
||||
|
||||
public static void checkYetaAccess() {
|
||||
if(!useSneakMouseWheelYetaWrench && !useSneakRightClickYetaWrench) {
|
||||
Log.warn("Both useSneakMouseWheelYetaWrench and useSneakRightClickYetaWrench are set to false. Enabling right click.");
|
||||
useSneakRightClickYetaWrench = true;
|
||||
}
|
||||
}
|
||||
|
||||
public static void init() {
|
||||
WeatherTask.CLEAR.setRequiredItem(getStackForString(weatherObeliskClearItem));
|
||||
WeatherTask.RAIN.setRequiredItem(getStackForString(weatherObeliskRainItem));
|
||||
|
||||
@@ -17,6 +17,7 @@ import cpw.mods.fml.common.gameevent.InputEvent.KeyInputEvent;
|
||||
import crazypants.enderio.EnderIO;
|
||||
import crazypants.enderio.api.tool.IConduitControl;
|
||||
import crazypants.enderio.conduit.ConduitDisplayMode;
|
||||
import crazypants.enderio.config.Config;
|
||||
import crazypants.enderio.item.PacketMagnetState.SlotType;
|
||||
import crazypants.enderio.item.darksteel.DarkSteelController;
|
||||
import crazypants.enderio.item.darksteel.DarkSteelItems;
|
||||
@@ -29,7 +30,6 @@ import crazypants.enderio.item.darksteel.upgrade.SpeedUpgrade;
|
||||
import crazypants.enderio.network.PacketHandler;
|
||||
import crazypants.enderio.thaumcraft.GogglesOfRevealingUpgrade;
|
||||
import crazypants.util.BaublesUtil;
|
||||
|
||||
import static crazypants.enderio.item.darksteel.DarkSteelItems.itemMagnet;
|
||||
|
||||
public class KeyTracker {
|
||||
@@ -172,6 +172,9 @@ public class KeyTracker {
|
||||
|
||||
private void handleYetaWrench() {
|
||||
if(!yetaWrenchMode.isPressed()) {
|
||||
if (yetaWrenchMode.getKeyCode() == 0) {
|
||||
Config.checkYetaAccess();
|
||||
}
|
||||
return;
|
||||
}
|
||||
EntityClientPlayerMP player = Minecraft.getMinecraft().thePlayer;
|
||||
|
||||
Reference in new issue
Block a user