forked from MagicBane/Server
Renamed class to not conflict with the java.lang version.
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
|
||||
package engine.net.client.handlers;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.Enum.DispatchChannel;
|
||||
import engine.mbEnums;
|
||||
import engine.mbEnums.DispatchChannel;
|
||||
import engine.exception.MsgSendException;
|
||||
import engine.net.Dispatch;
|
||||
import engine.net.DispatchMessage;
|
||||
@@ -46,11 +46,11 @@ public class ShowMsgHandler extends AbstractClientMsgHandler {
|
||||
int targetType = msg.getTargetType();
|
||||
AbstractCharacter tar = null;
|
||||
|
||||
if (targetType == Enum.GameObjectType.PlayerCharacter.ordinal())
|
||||
if (targetType == mbEnums.GameObjectType.PlayerCharacter.ordinal())
|
||||
tar = PlayerCharacter.getFromCache(msg.getTargetID());
|
||||
else if (targetType == Enum.GameObjectType.NPC.ordinal())
|
||||
else if (targetType == mbEnums.GameObjectType.NPC.ordinal())
|
||||
tar = NPC.getFromCache(msg.getTargetID());
|
||||
else if (targetType == Enum.GameObjectType.Mob.ordinal())
|
||||
else if (targetType == mbEnums.GameObjectType.Mob.ordinal())
|
||||
tar = Mob.getFromCache(msg.getTargetID());
|
||||
|
||||
if (tar == null || !tar.isAlive() || !tar.isActive())
|
||||
|
||||
Reference in New Issue
Block a user