mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 08:39:17 +00:00
Fix HintIconMessage.Type
This commit is contained in:
@@ -25,24 +25,24 @@ public abstract class HintIconMessage extends Message {
|
||||
CENTER(2),
|
||||
|
||||
/**
|
||||
* A HintIcon that hovers north over a Position.
|
||||
* A HintIcon that hovers west over a Position.
|
||||
*/
|
||||
NORTH(3),
|
||||
|
||||
/**
|
||||
* A HintIcon that hovers south over a Position.
|
||||
*/
|
||||
SOUTH(4),
|
||||
WEST(3),
|
||||
|
||||
/**
|
||||
* A HintIcon that hovers east over a Position.
|
||||
*/
|
||||
EAST(5),
|
||||
EAST(4),
|
||||
|
||||
/**
|
||||
* A HintIcon that hovers west over a Position.
|
||||
* A HintIcon that hovers south over a Position.
|
||||
*/
|
||||
WEST(6),
|
||||
SOUTH(5),
|
||||
|
||||
/**
|
||||
* A HintIcon that hovers north over a Position.
|
||||
*/
|
||||
NORTH(6),
|
||||
|
||||
/**
|
||||
* A HintIcon that hovers over a Player.
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
package org.apollo.game.message.impl;
|
||||
|
||||
import org.apollo.game.model.Position;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import org.apollo.game.model.Position;
|
||||
|
||||
/**
|
||||
* A {@link HintIconMessage} which displays a hint over a Position.
|
||||
@@ -22,7 +21,7 @@ public final class PositionHintIconMessage extends HintIconMessage {
|
||||
*/
|
||||
private static Type testType(Type type) {
|
||||
Preconditions.checkArgument(type != Type.NPC && type != Type.PLAYER,
|
||||
"Hint icons over a Position may not have a type of Player or Npc.");
|
||||
"Hint icons over a Position may not have a type of Player or Npc.");
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user