Updated to Minecraft 1.7.10, little code cleanup, fixed some minor bugs. Mouse Tweaks 2.4.4.

This commit is contained in:
Ivan Molodetskikh committed 2014-07-22 21:58:41 +04:00
1 parent f7390768cf
commit dbf0a2141e
8 files changed
+36 -48

No files matched your search

+9 -3
View File
@@ -330,7 +330,8 @@ public class Main extends DeobfuscationLayer {
if (Mouse.isButtonDown(1)) { // Right mouse button
if ((Main.RMBTweak == 1) && !Main.DisableRMBTweak) {
if ((stackOnMouse != null) && areStacksCompatible(stackOnMouse, targetStack)) {
if ((stackOnMouse != null) && areStacksCompatible(stackOnMouse, targetStack)
&& !isCraftingOutputSlot(currentScreen, selectedSlot)) {
if ((firstSlot != null) && !firstSlotClicked) {
firstSlotClicked = true;
disableRMBDragWithID(currentScreen);
@@ -353,8 +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)) {
clickSlot(currentScreen, selectedSlot, 0, false); // We need to click on the slot so that our item stack gets merged with
clickSlot(currentScreen, selectedSlot, 0, false); // it, and then click again to return the stack to the mouse.
// 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);
}
}
}