Styling formating and Rebuild attempt

This commit is contained in:
Menithal 2017-02-27 23:27:48 +02:00
parent 1d8be2aeaa
commit 9fbde41dc4

View file

@ -1465,7 +1465,7 @@ function MyController(hand) {
return false;
}
if (entityProps.hasOwnProperty("cloneable")/*&& props.locked*/) {
if (entityProps.hasOwnProperty("cloneable")) {
return entityProps.cloneable;
}
return false;
@ -2397,7 +2397,7 @@ function MyController(hand) {
var userData = JSON.parse(grabbedProperties.userData);
var grabInfo = userData.grabbableKey;
if (grabInfo && grabInfo.cloneable) {
// Check if
var worldEntities = Entities.findEntitiesInBox(Vec3.subtract(MyAvatar.position, {x:25,y:25, z:25}), {x:50, y: 50, z: 50})
var count = 0;
worldEntities.forEach(function(item) {
@ -2436,6 +2436,7 @@ function MyController(hand) {
this.grabbedEntity = Entities.addEntity(cProperties);
grabbedProperties = Entities.getEntityProperties(this.grabbedEntity);
var _this = this;
Script.setTimeout(function () {
// This is needed to wait for the grabbed entity to have been instanciated.
_this.callEntityMethodOnGrabbed("startEquip");