fix: seal lock cant extend lock time

This commit is contained in:
leevccc
2024-01-14 22:13:16 +08:00
parent 8b254a294e
commit 08b089d9be

View File

@@ -228,10 +228,10 @@ public final class UseCashItemHandler extends AbstractPacketHandler {
return;
}
short flag = eq.getFlag();
flag |= ItemConstants.LOCK;
if (eq.getExpiration() > -1 && (eq.getFlag() & ItemConstants.LOCK) != ItemConstants.LOCK) {
return; //No perma items pls
}
flag |= ItemConstants.LOCK;
eq.setFlag(flag);
long period = 0;