mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 12:12:46 +02:00
Fix pitching machine not starting when enabled
This commit is contained in:
parent
8b6db3b6c0
commit
def8294b60
1 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,7 @@ function findEntities(properties, searchRadius) {
|
|||
|
||||
getPitchingMachine = function() {
|
||||
// Search for pitching machine
|
||||
var entities = findEntities({ name: PITCHING_MACHINE_PROPERTIES.name }, 100);
|
||||
var entities = findEntities({ name: PITCHING_MACHINE_PROPERTIES.name }, 1000);
|
||||
var pitchingMachineID = null;
|
||||
|
||||
// Create if it doesn't exist
|
||||
|
@ -183,6 +183,8 @@ PitchingMachine.prototype = {
|
|||
var self = this;
|
||||
Script.setTimeout(function() { self.pitchBall() }, 3000);
|
||||
}
|
||||
} else if (this.enabled) {
|
||||
this.pitchBall();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue