mirror of
https://github.com/darksaid98/draggable_lists.git
synced 2026-12-01 14:38:47 +00:00
1 file changed
+2
-1
+2
-1
@@ -53,10 +53,11 @@ public abstract class ServerSelectionListMixin extends ObjectSelectionList<Serve
|
||||
|
||||
@Override
|
||||
public boolean mouseClicked(double mouseX, double mouseY, int button) {
|
||||
setSelected(getEntryAtPosition(mouseX, mouseY));
|
||||
|
||||
// Double clicks should join the server instead of dragging
|
||||
if (Util.getMillis() - this.lastClickTime < 250L) {
|
||||
draggable_lists$dragManager.mouseReleased(mouseX, mouseY, button);
|
||||
setSelected(getEntryAtPosition(mouseX, mouseY));
|
||||
this.screen.joinSelectedServer();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user