From a6950dd9d8268201f85aa14cb5281ff3e31b63df Mon Sep 17 00:00:00 2001 From: fullwall Date: Tue, 6 Nov 2012 18:29:14 +0800 Subject: [PATCH] Call with right this --- src/main/java/net/citizensnpcs/trait/Behaviour.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/citizensnpcs/trait/Behaviour.java b/src/main/java/net/citizensnpcs/trait/Behaviour.java index c91e44009..b85c93bfe 100644 --- a/src/main/java/net/citizensnpcs/trait/Behaviour.java +++ b/src/main/java/net/citizensnpcs/trait/Behaviour.java @@ -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; }