We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e95b81 commit 3e57caeCopy full SHA for 3e57cae
src/main/java/com/btk5h/skriptdb/skript/EffExecuteStatement.java
@@ -86,7 +86,7 @@ protected void execute(Event e) {
86
String result = executeStatement(e);
87
continueScriptExecution(e, result);
88
} else {
89
- if (isMainThread) {
+ if (isSync) {
90
Skript.warning("A SQL query was attempted on the main thread!");
91
}
92
@@ -98,11 +98,7 @@ protected void execute(Event e) {
98
err.printStackTrace();
99
100
101
- if (isSync) {
102
- continueScriptExecution(e, res);
103
- } else {
104
- Bukkit.getScheduler().runTask(SkriptDB.getInstance(), () -> continueScriptExecution(e, res));
105
- }
+ Bukkit.getScheduler().runTask(SkriptDB.getInstance(), () -> continueScriptExecution(e, res));
106
});
107
108
0 commit comments