mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-01 14:08:08 +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 {
|
||||
synchronized (Behaviour.this) {
|
||||
fileInUse = file;
|
||||
instance.invoke("addGoals", this, npc);
|
||||
instance.invoke("addGoals", BehaviourCallback.this, npc);
|
||||
scripts.add(file);
|
||||
fileInUse = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user