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:
@@ -84,7 +84,6 @@ public enum WorldType
|
||||
DEADMAN,
|
||||
DEADMAN_TOURNAMENT,
|
||||
PVP,
|
||||
HIGH_RISK,
|
||||
SEASONAL_DEADMAN
|
||||
);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user