You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/me/flame/menus/items/MenuItem.java
+1-22Lines changed: 1 addition & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ public final class MenuItem implements Cloneable, ConfigurationSerializable {
50
50
CompletableFuture<ItemResponse> clickAction;
51
51
52
52
@Getter@Setter
53
-
booleanasync;
53
+
booleanasync = false;
54
54
55
55
@NotNull
56
56
ItemStackitemStack;
@@ -94,28 +94,7 @@ public ItemResponse getClickActionNow(ItemResponse ifAbsent) {
94
94
returnclickAction.getNow(ifAbsent);
95
95
}
96
96
97
-
/**
98
-
* Set the click action but always guaranteed to run asynchronously
99
-
* @apiNote for anyone who is new to asynchronous programming, it does not make your code faster, but prevents blocking the main thread and thus prevent slowing down the thread that runs your server.
* Set the click action but always guaranteed to run asynchronously
109
-
* @apiNote for anyone who is new to asynchronous programming, it does not make your code faster, but prevents blocking the main thread and thus prevent slowing down the thread that runs your server.
0 commit comments