mirror of
https://github.com/2006-Scape/Parabot-Randoms.git
synced 2026-07-07 16:49:11 +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.Items;
|
||||||
import org.rev317.min.api.methods.Menu;
|
import org.rev317.min.api.methods.Menu;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author AlexanderBielen
|
* @author AlexanderBielen
|
||||||
*/
|
*/
|
||||||
@@ -20,6 +19,7 @@ public class ItemPicker implements Random {
|
|||||||
public boolean activate() {
|
public boolean activate() {
|
||||||
return Game.isLoggedIn()
|
return Game.isLoggedIn()
|
||||||
&& Interfaces.getOpenInterfaceId() == INTERFACE_ID
|
&& Interfaces.getOpenInterfaceId() == INTERFACE_ID
|
||||||
|
&& Interfaces.getInterface(INTERFACE_ID + 3).getMessage() != null
|
||||||
&& !Interfaces.getInterface(INTERFACE_ID + 3).getMessage().contains("0:00");
|
&& !Interfaces.getInterface(INTERFACE_ID + 3).getMessage().contains("0:00");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user