mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -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
|
* @param {number} direction - rotate in this direction
|
||||||
*/
|
*/
|
||||||
turnOnForDegrees (degrees, direction) {
|
turnOnForDegrees (degrees, direction) {
|
||||||
if (this._power === 0) {
|
if (this.power === 0) {
|
||||||
this.pendingPromiseFunction();
|
this.pendingPromiseFunction();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue