mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Use the power-getter rather than accessing the property directly
This commit is contained in:
parent
d9e0267fa0
commit
41873bf7bf
1 changed files with 1 additions and 1 deletions
|
@ -471,7 +471,7 @@ class BoostMotor {
|
|||
* @param {number} direction - rotate in this direction
|
||||
*/
|
||||
turnOnForDegrees (degrees, direction) {
|
||||
if (this._power === 0) {
|
||||
if (this.power === 0) {
|
||||
this.pendingPromiseFunction();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue