Changed henna restoration time check.

This commit is contained in:
MobiusDev
2019-01-18 01:56:00 +00:00
parent 5fb9c5e033
commit 11405bf351
10 changed files with 14 additions and 10 deletions

View File

@ -7831,7 +7831,7 @@ public final class L2PcInstance extends L2Playable
if (henna.getDuration() > 0)
{
final long currentTime = System.currentTimeMillis();
final long remainingTime = currentTime - getVariables().getLong("HennaDuration" + slot, currentTime);
final long remainingTime = getVariables().getLong("HennaDuration" + slot, currentTime) - currentTime;
if (remainingTime < 0)
{
removeHenna(slot);