Skip to content

Commit

Permalink
Version 1.2.2
Browse files Browse the repository at this point in the history
* Improved alt-click-dropping
* Improved config slightly
* Added german translations
  • Loading branch information
Siphalor committed Jun 6, 2019
1 parent ef9b0ff commit ed35654
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/de/siphalor/mousewheelie/client/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -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> toolPickMode = generalCategory.register("tool-pick-mode", new EnumEntry<>(ToolPickMode.HOLD_TOOL))
.setEnvironment(ConfigEnvironment.CLIENT);
public static EnumEntry<ToolPickMode> toolPickMode = (EnumEntry<ToolPickMode>) 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.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
19 changes: 19 additions & 0 deletions src/main/resources/assets/mousewheelie/lang/de_de.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit ed35654

Please sign in to comment.