mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:03:53 +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
|
||||
baton.claim(startUpdate, stopUpdateAndReclaim);
|
||||
stopUpdateAndReclaim();
|
||||
}
|
||||
|
||||
CuckooClockMinuteHand.prototype = {
|
||||
|
@ -56,11 +55,14 @@
|
|||
}
|
||||
_this.clockBody = _this.userData.clockBody;
|
||||
// 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() {
|
||||
|
|
Loading…
Reference in a new issue