mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 20:49:05 +00:00
action.copyDataTo(IAction copyTo)
This commit is contained in:
1 parent
835b32daa1
commit
3e6b37ac05
2 files changed
+7
-1
No files matched your search
@@ -211,6 +211,12 @@ public class Action implements IAction {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAction copyDataTo(IAction to) {
|
||||
((Action) to).dataStore.putAll(dataStore);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String printData() {
|
||||
if (dataStore.isEmpty()) {
|
||||
|
||||
@@ -93,7 +93,7 @@ public class ActionThread {
|
||||
}
|
||||
|
||||
public boolean isTaskRunning(String taskKey) {
|
||||
return runningTasks.contains(taskKey);
|
||||
return runningKeys.contains(taskKey);
|
||||
}
|
||||
|
||||
public boolean inActionThread() {
|
||||
|
||||
Reference in new issue
Block a user