Use TimeUnit for time calculations
This commit is contained in:
@@ -63,7 +63,7 @@ public final class ItemRewardHandler extends AbstractPacketHandler {
|
||||
if (ItemConstants.getInventoryType(reward.itemid) == InventoryType.EQUIP) {
|
||||
final Item item = ii.getEquipById(reward.itemid);
|
||||
if (reward.period != -1) {
|
||||
item.setExpiration(currentServerTime() + (reward.period * 60 * 60 * 10));
|
||||
item.setExpiration(currentServerTime() + reward.period * 60 * 60 * 10);
|
||||
}
|
||||
InventoryManipulator.addFromDrop(c, item, false);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user