mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-02 16:49:09 +00:00
Renamed Prayer#isActive to Prayer#isEnabled
This commit is contained in:
@@ -92,29 +92,29 @@ public enum Prayer {
|
||||
return setting;
|
||||
}
|
||||
|
||||
public boolean isActive(){
|
||||
public boolean isEnabled(){
|
||||
return Game.getSetting(setting) == 1;
|
||||
}
|
||||
|
||||
public void enable() {
|
||||
if (!isActive()) {
|
||||
if (!isEnabled()) {
|
||||
Menu.sendAction(169, -1, -1, action);
|
||||
Time.sleep(new SleepCondition() {
|
||||
@Override
|
||||
public boolean isValid() {
|
||||
return isActive();
|
||||
return isEnabled();
|
||||
}
|
||||
}, 1500);
|
||||
}
|
||||
}
|
||||
|
||||
public void disable() {
|
||||
if (isActive()) {
|
||||
if (isEnabled()) {
|
||||
Menu.sendAction(169, -1, -1, action);
|
||||
Time.sleep(new SleepCondition() {
|
||||
@Override
|
||||
public boolean isValid() {
|
||||
return !isActive();
|
||||
return !isEnabled();
|
||||
}
|
||||
}, 1500);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user