Skip to content

Commit

Permalink
[FIX] Move object command collisions issue because of ignore if impos…
Browse files Browse the repository at this point in the history
…sibl changes
  • Loading branch information
Wano-k committed Sep 20, 2023
1 parent 57931e0 commit 3d07acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EventCommand/MoveObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,10 @@ class MoveObject extends Base {
.SQUARE_SIZE) || (square && currentState.distance >= Datas.Systems
.SQUARE_SIZE || (distances[0] === 0)))
{
if (distances[0] === 0) {
if (distances[0] === 0 && square && !this.isIgnore) {
currentState.position = null;
object.moving = true;
return this.isIgnore;
return false;
}
if (square && currentState.distance === currentState.normalDistance) {
object.position = currentState.position;
Expand Down

0 comments on commit 3d07acf

Please sign in to comment.