mirror of
https://github.com/2006-Scape/Parabot-Randoms.git
synced 2026-07-08 00:38:51 +00:00
NameFix
This commit is contained in:
@@ -9,7 +9,7 @@ import org.rev317.min.api.methods.Players;
|
|||||||
import org.rev317.min.api.wrappers.Npc;
|
import org.rev317.min.api.wrappers.Npc;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Updated Lord
|
* @author Lord
|
||||||
*/
|
*/
|
||||||
public class CombatStone implements Random {
|
public class CombatStone implements Random {
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ public class CombatStone implements Random {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean activate() {
|
public boolean activate() {
|
||||||
this.combat = getLady();
|
this.combat = getCombat();
|
||||||
return this.combat != null;
|
return this.combat != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,10 +36,10 @@ public class CombatStone implements Random {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Npc getLady() {
|
private Npc getCombat() {
|
||||||
for (Npc lady : Npcs.getNearest(id)) {
|
for (Npc combat : Npcs.getNearest(id)) {
|
||||||
if (lady != null && lady.getInteractingCharacter().equals(Players.getMyPlayer())) {
|
if (combat != null && combat.getInteractingCharacter().equals(Players.getMyPlayer())) {
|
||||||
return lady;
|
return combat;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user