Call with right this

This commit is contained in:
fullwall 2012-11-06 18:29:14 +08:00
parent fc48b53d74
commit dd3be846be

View File

@ -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;
} }