Removed unnecessary casts.
This commit is contained in:
@@ -1159,7 +1159,7 @@ public class AdminEditChar implements IAdminCommandHandler
|
||||
adminReply.replace("%pkkills%", String.valueOf(player.getPkKills()));
|
||||
adminReply.replace("%currentload%", String.valueOf(player.getCurrentLoad()));
|
||||
adminReply.replace("%maxload%", String.valueOf(player.getMaxLoad()));
|
||||
adminReply.replace("%percent%", String.format("%.2f", (((float) player.getCurrentLoad() / (float) player.getMaxLoad()) * 100)));
|
||||
adminReply.replace("%percent%", String.format("%.2f", (((float) player.getCurrentLoad() / player.getMaxLoad()) * 100)));
|
||||
adminReply.replace("%patk%", String.valueOf(player.getPAtk()));
|
||||
adminReply.replace("%matk%", String.valueOf(player.getMAtk()));
|
||||
adminReply.replace("%pdef%", String.valueOf(player.getPDef()));
|
||||
|
@@ -193,7 +193,7 @@ public final class L2ItemInstance extends L2Object
|
||||
_type2 = 0;
|
||||
_dropTime = 0;
|
||||
_mana = _item.getDuration();
|
||||
_time = _item.getTime() == -1 ? -1 : System.currentTimeMillis() + ((long) _item.getTime() * 60 * 1000);
|
||||
_time = _item.getTime() == -1 ? -1 : System.currentTimeMillis() + (_item.getTime() * 60 * 1000);
|
||||
scheduleLifeTimeTask();
|
||||
}
|
||||
|
||||
@@ -215,7 +215,7 @@ public final class L2ItemInstance extends L2Object
|
||||
super.setName(_item.getName());
|
||||
_loc = ItemLocation.VOID;
|
||||
_mana = _item.getDuration();
|
||||
_time = _item.getTime() == -1 ? -1 : System.currentTimeMillis() + ((long) _item.getTime() * 60 * 1000);
|
||||
_time = _item.getTime() == -1 ? -1 : System.currentTimeMillis() + (_item.getTime() * 60 * 1000);
|
||||
scheduleLifeTimeTask();
|
||||
}
|
||||
|
||||
|
@@ -48,9 +48,9 @@ public final class RelationChanged implements IClientOutgoingPacket
|
||||
public static final int RELATION_TERRITORY_WAR = 0x80000; // show Territory War icon
|
||||
|
||||
// Masks
|
||||
public static final byte SEND_ONE = (byte) 0x00;
|
||||
public static final byte SEND_DEFAULT = (byte) 0x01;
|
||||
public static final byte SEND_MULTI = (byte) 0x04;
|
||||
public static final byte SEND_ONE = 0x00;
|
||||
public static final byte SEND_DEFAULT = 0x01;
|
||||
public static final byte SEND_MULTI = 0x04;
|
||||
|
||||
protected static class Relation
|
||||
{
|
||||
@@ -59,7 +59,7 @@ public final class RelationChanged implements IClientOutgoingPacket
|
||||
|
||||
private Relation _singled;
|
||||
private final List<Relation> _multi;
|
||||
private byte _mask = (byte) 0x00;
|
||||
private byte _mask = 0x00;
|
||||
|
||||
public RelationChanged(L2Playable activeChar, int relation, boolean autoattackable)
|
||||
{
|
||||
|
Reference in New Issue
Block a user