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