mirror of
https://github.com/2006-Scape/Parabot-Randoms.git
synced 2026-07-02 16:49:09 +00:00
[TASK]Added null check to activate condition
This commit is contained in:
@@ -9,7 +9,6 @@ import org.rev317.min.api.methods.Interfaces;
|
||||
import org.rev317.min.api.methods.Items;
|
||||
import org.rev317.min.api.methods.Menu;
|
||||
|
||||
|
||||
/**
|
||||
* @author AlexanderBielen
|
||||
*/
|
||||
@@ -20,6 +19,7 @@ public class ItemPicker implements Random {
|
||||
public boolean activate() {
|
||||
return Game.isLoggedIn()
|
||||
&& Interfaces.getOpenInterfaceId() == INTERFACE_ID
|
||||
&& Interfaces.getInterface(INTERFACE_ID + 3).getMessage() != null
|
||||
&& !Interfaces.getInterface(INTERFACE_ID + 3).getMessage().contains("0:00");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user