Remove PVP references to HIGH_RISK world type

As described in 5bebd34bb, HIGH_RISK is not a PVP world type.

Note: this will not affect the world hopper plugin, as it both
explicitly references the high risk world type, and references the
http-api WorldType implementation, not the runelite-api WorldType which
is being modified in this commit.

Fixes runelite/runelite#8605
Fixes runelite/runelite#8624
This commit is contained in:
Jordan Atwood
2019-04-23 12:40:43 -07:00
parent 5bebd34bbf
commit 011791d823
2 changed files with 1 additions and 5 deletions

View File

@@ -84,7 +84,6 @@ public enum WorldType
DEADMAN,
DEADMAN_TOURNAMENT,
PVP,
HIGH_RISK,
SEASONAL_DEADMAN
);

View File

@@ -406,10 +406,7 @@ public class DiscordPlugin extends Plugin
final EnumSet<WorldType> worldType = client.getWorldType();
// Do not show location in PVP activities
if (worldType.contains(WorldType.SEASONAL_DEADMAN) ||
worldType.contains(WorldType.DEADMAN) ||
worldType.contains(WorldType.PVP) ||
worldType.contains(WorldType.HIGH_RISK))
if (WorldType.isPvpWorld(worldType))
{
return false;
}