xp drops: test server varbit for prayer active check
This fixes an issue where the xp drop recoloring would incorrectly recolor the xpdrop if the prayer was flicked on client side in between when the server tick happens and when the xp drop is created
This commit is contained in:
@@ -181,7 +181,7 @@ public class XpDropPlugin extends Plugin
|
||||
{
|
||||
for (XpPrayer prayer : XpPrayer.values())
|
||||
{
|
||||
if (client.isPrayerActive(prayer.getPrayer()))
|
||||
if (client.getServerVarbitValue(prayer.getPrayer().getVarbit()) == 1)
|
||||
{
|
||||
return prayer.getType();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user