Formatting.

This commit is contained in:
Ivan Molodetskikh committed 2014-07-22 22:15:02 +04:00
1 parent dbf0a2141e
commit 6329326de9
4 files changed
+16 -16

No files matched your search

+4 -4
View File
@@ -34,10 +34,10 @@ public class Config {
public boolean saveConfig() {
try {
File config = new File(fileName);
File parentDir = config.getParentFile();
if (!parentDir.exists())
parentDir.mkdirs();
File config = new File(fileName);
File parentDir = config.getParentFile();
if (!parentDir.exists())
parentDir.mkdirs();
FileWriter configWriter = new FileWriter(config);
properties.store(configWriter, null);
+3 -3
View File
@@ -18,9 +18,9 @@ public class Constants {
public static final String MCPROFILER_FORGE_NAME = "field_71424_I";
// MCP names - these are the same as Forge ones for the most part
public static final String ISMOUSEOVERSLOT_MCP_NAME = "isMouseOverSlot";
public static final String FIELDE_MCP_NAME = "ignoreMouseUp";
public static final String FIELDq_MCP_NAME = "dragSplitting";
public static final String ISMOUSEOVERSLOT_MCP_NAME = "isMouseOverSlot";
public static final String FIELDE_MCP_NAME = "ignoreMouseUp";
public static final String FIELDq_MCP_NAME = "dragSplitting";
public static final String MCPROFILER_MCP_NAME = "mcProfiler";
// OnTick methods
+7 -7
View File
@@ -331,7 +331,7 @@ public class Main extends DeobfuscationLayer {
if ((Main.RMBTweak == 1) && !Main.DisableRMBTweak) {
if ((stackOnMouse != null) && areStacksCompatible(stackOnMouse, targetStack)
&& !isCraftingOutputSlot(currentScreen, selectedSlot)) {
&& !isCraftingOutputSlot(currentScreen, selectedSlot)) {
if ((firstSlot != null) && !firstSlotClicked) {
firstSlotClicked = true;
disableRMBDragWithID(currentScreen);
@@ -354,13 +354,13 @@ public class Main extends DeobfuscationLayer {
clickSlot(currentScreen, selectedSlot, 0, true);
} else { // If shift is not down, we need to merge the item stack on the mouse with the one in the slot.
if ((getItemStackSize(stackOnMouse) + getItemStackSize(targetStack)) <= getMaxItemStackSize(stackOnMouse)) {
// We need to click on the slot so that our item stack gets merged with it,
// and then click again to return the stack to the mouse.
// However, if the slot is crafting output, then the item is added to the mouse stack
// on the first click and we don't need to click the second time.
// We need to click on the slot so that our item stack gets merged with it,
// and then click again to return the stack to the mouse.
// However, if the slot is crafting output, then the item is added to the mouse stack
// on the first click and we don't need to click the second time.
clickSlot(currentScreen, selectedSlot, 0, false);
if (!isCraftingOutputSlot(currentScreen, selectedSlot))
clickSlot(currentScreen, selectedSlot, 0, false);
if (!isCraftingOutputSlot(currentScreen, selectedSlot))
clickSlot(currentScreen, selectedSlot, 0, false);
}
}
}