mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
tabs
This commit is contained in:
parent
07fb604090
commit
5bf48041df
1 changed files with 5 additions and 5 deletions
|
@ -385,11 +385,11 @@ distanceBetweenPointAndEntityBoundingBox = function(point, entityProps) {
|
|||
};
|
||||
|
||||
entityIsEquipped = function(entityID) {
|
||||
var rightEquipEntity = getEnabledModuleByName("RightEquipEntity");
|
||||
var leftEquipEntity = getEnabledModuleByName("LeftEquipEntity");
|
||||
var equippedInRightHand = rightEquipEntity ? rightEquipEntity.targetEntityID === entityID : false;
|
||||
var equippedInLeftHand = leftEquipEntity ? leftEquipEntity.targetEntityID === entityID : false;
|
||||
return equippedInRightHand || equippedInLeftHand;
|
||||
var rightEquipEntity = getEnabledModuleByName("RightEquipEntity");
|
||||
var leftEquipEntity = getEnabledModuleByName("LeftEquipEntity");
|
||||
var equippedInRightHand = rightEquipEntity ? rightEquipEntity.targetEntityID === entityID : false;
|
||||
var equippedInLeftHand = leftEquipEntity ? leftEquipEntity.targetEntityID === entityID : false;
|
||||
return equippedInRightHand || equippedInLeftHand;
|
||||
};
|
||||
|
||||
if (typeof module !== 'undefined') {
|
||||
|
|
Loading…
Reference in a new issue