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:
Adam
2022-06-21 12:06:27 -04:00
parent 6dcd2afd8b
commit 8972a6de25

View File

@@ -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();
}