Fix some MouseTweaks interactions (#455)
This commit is contained in:
@@ -1057,7 +1057,7 @@ public abstract class AEBaseGui extends GuiContainer implements IMTModGuiContain
|
||||
@Override
|
||||
@Optional.Method(modid = "mousetweaks")
|
||||
public boolean MT_isMouseTweaksDisabled() {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1087,12 +1087,20 @@ public abstract class AEBaseGui extends GuiContainer implements IMTModGuiContain
|
||||
@Override
|
||||
@Optional.Method(modid = "mousetweaks")
|
||||
public boolean MT_isIgnored(Slot slot) {
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Optional.Method(modid = "mousetweaks")
|
||||
public boolean MT_disableRMBDraggingFunctionality() {
|
||||
if (this.dragSplitting && this.dragSplittingButton == 1) {
|
||||
this.dragSplitting = false;
|
||||
// Don't ignoreMouseUp on slots that can't accept the item. (crafting output, ME slot, etc.)
|
||||
if (this.getSlotUnderMouse() != null && this.getSlotUnderMouse().isItemValid(this.mc.player.inventory.getItemStack())) {
|
||||
this.ignoreMouseUp = true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# GUI rendering
|
||||
public net.minecraft.client.gui.inventory.GuiContainer func_146977_a(Lnet/minecraft/inventory/Slot;)V # drawSlot
|
||||
public net.minecraft.client.gui.inventory.GuiContainer field_146988_G # dragSplittingButton
|
||||
public net.minecraft.client.gui.inventory.GuiContainer field_146987_F # dragSplittingLimit
|
||||
public net.minecraft.client.gui.inventory.GuiContainer field_146995_H # ignoreMouseUp
|
||||
public net.minecraft.client.gui.GuiTextField func_146188_c(IIII)V # drawSelectionBox
|
||||
|
||||
Reference in New Issue
Block a user