Skip to content

Commit

Permalink
fix: user lock bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis committed Nov 2, 2023
1 parent 7f67ffb commit 9c9d6ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts/src/systems/MoveSystem.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ contract MoveSystem is System {
// 用户自行解锁
require(PlayerLocationLock.get(_msgSender()) != 0, "You are not locked");
require(
PlayerLocationLock.get(_msgSender()) + BattleConfig.getMaxUserLocationLockTime(BATTLE_CONFIG_KEY) <
PlayerLocationLock.get(_msgSender()) + BattleConfig.getMaxUserLocationLockTime(BATTLE_CONFIG_KEY) >
block.timestamp,
"You are not locked"
"You are locked"
);
PlayerLocationLock.set(_msgSender(), 0);
}
Expand Down

0 comments on commit 9c9d6ca

Please sign in to comment.