Hello all!
I'm writing a basic fishing script. When I set it up the first time it was working decently. Now I'm trying to map it over to a behavior tree (Task based script).
I have this issue where in a Task that checks if the player is at a spot, the myPosition() method keeps giving me a NullPointerException. It says the issue is at org.osbot.rs07.script.MethodProvider.myPlayer(xe:677) and (xe:679).
I've narrowed it down here. The MethodProvider is not null, the getInventory is not null, which means that other methods on the MethodProvider work. The only thing that's returning as null is the myPosition method.
Does anyone have any advice?