mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:13:29 +02:00
fixed virtual baton stuff;
This commit is contained in:
parent
7ccf7b42d8
commit
be7a7f329b
1 changed files with 7 additions and 5 deletions
|
@ -40,7 +40,6 @@
|
||||||
}
|
}
|
||||||
//hook up callbacks to the baton
|
//hook up callbacks to the baton
|
||||||
baton.claim(startUpdate, stopUpdateAndReclaim);
|
baton.claim(startUpdate, stopUpdateAndReclaim);
|
||||||
stopUpdateAndReclaim();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CuckooClockMinuteHand.prototype = {
|
CuckooClockMinuteHand.prototype = {
|
||||||
|
@ -56,11 +55,14 @@
|
||||||
}
|
}
|
||||||
_this.clockBody = _this.userData.clockBody;
|
_this.clockBody = _this.userData.clockBody;
|
||||||
// One winner for each entity
|
// One winner for each entity
|
||||||
baton = virtualBaton({
|
|
||||||
batonName: "io.highfidelity.cuckooClock:" + _this.entityID
|
|
||||||
})
|
|
||||||
|
|
||||||
Script.update.connect(_this.update);
|
if(Entities.canRez() && Entities.canAdjustLocks){
|
||||||
|
baton = virtualBaton({
|
||||||
|
batonName: "io.highfidelity.cuckooClock:" + _this.entityID
|
||||||
|
});
|
||||||
|
stopUpdateAndReclaim();
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
unload: function() {
|
unload: function() {
|
||||||
|
|
Loading…
Reference in a new issue