diff --git a/gradle.properties b/gradle.properties index 7a192557..0b12b4a7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ org.gradle.jvmargs=-Xmx1G # Mod Properties mod_id = mousewheelie - mod_version = 1.2.1 + mod_version = 1.2.2 maven_group = de.siphalor archives_base_name = mousewheelie diff --git a/src/main/java/de/siphalor/mousewheelie/client/Config.java b/src/main/java/de/siphalor/mousewheelie/client/Config.java index 0dc7bdff..a9154037 100644 --- a/src/main/java/de/siphalor/mousewheelie/client/Config.java +++ b/src/main/java/de/siphalor/mousewheelie/client/Config.java @@ -33,8 +33,9 @@ public class Config { .setEnvironment(ConfigEnvironment.CLIENT) .setComment("Set the scroll factor for item scrolling." + System.lineSeparator() + "To invert the scrolling use negative numbers"); - public static EnumEntry toolPickMode = generalCategory.register("tool-pick-mode", new EnumEntry<>(ToolPickMode.HOLD_TOOL)) - .setEnvironment(ConfigEnvironment.CLIENT); + public static EnumEntry toolPickMode = (EnumEntry) generalCategory.register("tool-pick-mode", new EnumEntry<>(ToolPickMode.HOLD_TOOL)) + .setEnvironment(ConfigEnvironment.CLIENT) + .setComment("Sets when to pick the optimal tool to mine the targetted block."); public static ConfigCategory refillCategory = configFile.register("refill", new ConfigCategory()) .setComment("Configure refill related stuff here."); diff --git a/src/main/java/de/siphalor/mousewheelie/client/mixin/MixinAbstractContainerScreen.java b/src/main/java/de/siphalor/mousewheelie/client/mixin/MixinAbstractContainerScreen.java index 9162fa05..6675fffa 100644 --- a/src/main/java/de/siphalor/mousewheelie/client/mixin/MixinAbstractContainerScreen.java +++ b/src/main/java/de/siphalor/mousewheelie/client/mixin/MixinAbstractContainerScreen.java @@ -107,6 +107,10 @@ public void onMouseClick(double x, double y, int button, CallbackInfoReturnable< if(button == 2) { if(mouseWheelie_triggerSort()) callbackInfoReturnable.setReturnValue(true); + } else if(button == 0 && hasAltDown()) { + Slot hoveredSlot = getSlotAt(x, y); + if(hoveredSlot != null) + onMouseClick(hoveredSlot, hoveredSlot.id, 1, SlotActionType.THROW); } } diff --git a/src/main/resources/assets/mousewheelie/lang/de_de.json b/src/main/resources/assets/mousewheelie/lang/de_de.json new file mode 100644 index 00000000..cf467bc2 --- /dev/null +++ b/src/main/resources/assets/mousewheelie/lang/de_de.json @@ -0,0 +1,19 @@ +{ + "key.categories.mousewheelie": "Mouse Wheelie", + "key.mousewheelie.sort_inventory": "Inventar sortieren", + + "tweed.cloth.mousewheelie": "Mouse Wheelie Einstellungen", + + "tweed.cloth.mousewheelie.general": "Allgemein", + "tweed.cloth.mousewheelie.general.scroll-factor": "Scroll-Faktor", + "tweed.cloth.mousewheelie.general.tool-pick-mode": "Wann das zum Abbauen optimale Werkzeug ausgewählt wird:", + + "tweed.cloth.mousewheelie.sort": "Sortierung", + "tweed.cloth.mousewheelie.sort.primary-sort": "Mittlere Maustaste", + "tweed.cloth.mousewheelie.sort.shift-sort": "Umschalt und mittlere Maustaste", + "tweed.cloth.mousewheelie.sort.control-sort": "Steuerung und mittlere Maustaste", + + "tweed.cloth.mousewheelie.refill": "Nachladen", + "tweed.cloth.mousewheelie.refill.eat": "Lade Essen nach", + "tweed.cloth.mousewheelie.refill.other": "Sonstiges Nachladen" +} \ No newline at end of file