Fix not being able to grab tablet with other hand

This commit is contained in:
David Rowe 2018-09-28 11:09:16 +12:00
parent 1088a0f9ae
commit d98e7cea4e
2 changed files with 2 additions and 2 deletions

View file

@ -228,7 +228,7 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js");
nearbyOverlays.splice(tabletIndex, 1);
}
if (miniTabletIndex !== -1
&& (closebyOverlays.indexOf(_this.miniTabletID) === -1) || h !== _this.miniTabletHand) {
&& ((closebyOverlays.indexOf(_this.miniTabletID) === -1) || h !== _this.miniTabletHand)) {
nearbyOverlays.splice(miniTabletIndex, 1);
}
}

View file

@ -45,7 +45,7 @@ Script.include("/~/system/libraries/utils.js");
this.setMiniTabletID = function (id) {
this.miniTabletID = id;
}
};
this.otherHandIsParent = function(props) {
return this.getOtherModule().thisHandIsParent(props);