fixed virtual baton stuff;

This commit is contained in:
ericrius1 2016-03-17 13:42:16 -07:00
parent 7ccf7b42d8
commit be7a7f329b

View file

@ -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() {