Removed unnecessary casts.

This commit is contained in:
MobiusDev
2018-06-24 16:39:51 +00:00
parent 4137824649
commit c9b04d53f4
47 changed files with 97 additions and 97 deletions

View File

@@ -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();
}

View File

@@ -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)
{