mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 20:55:44 +01:00
Call with right this
This commit is contained in:
parent
fc48b53d74
commit
dd3be846be
@ -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