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