mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-31 20:41:32 +01:00
Call with right this
This commit is contained in:
parent
f63ef768b4
commit
a6950dd9d8
@ -136,7 +136,7 @@ public class Behaviour extends Trait {
|
|||||||
public Object call() throws Exception {
|
public Object call() throws Exception {
|
||||||
synchronized (Behaviour.this) {
|
synchronized (Behaviour.this) {
|
||||||
fileInUse = file;
|
fileInUse = file;
|
||||||
instance.invoke("addGoals", this, npc);
|
instance.invoke("addGoals", BehaviourCallback.this, npc);
|
||||||
scripts.add(file);
|
scripts.add(file);
|
||||||
fileInUse = null;
|
fileInUse = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user