Skip to content

Commit 41d26d3

Browse files
committed
fixes bug that would run physics simulation on ungrab node action
1 parent ca64521 commit 41d26d3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nakar-server/src/lib/room-worker/RoomInstanceService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export class RoomInstanceService implements ApplicationService {
8484
foundNode.position.y = movedNode.position.y;
8585
}
8686

87-
void this._physics.run({ maxMs: PhysicsSimulation.cooldownTime });
87+
if (action.runShortPhysics) {
88+
void this._physics.run({ maxMs: PhysicsSimulation.cooldownTime });
89+
}
8890
},
8991
)
9092
.with(

0 commit comments

Comments
 (0)