mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Set teleport target to Cancel if seat in use
This commit is contained in:
parent
c1466c2dec
commit
4c75680877
1 changed files with 6 additions and 1 deletions
|
@ -440,7 +440,12 @@ function getTeleportTargetType(intersection) {
|
|||
var props = Entities.getEntityProperties(intersection.entityID, ['userData', 'visible']);
|
||||
var data = parseJSON(props.userData);
|
||||
if (data !== undefined && data.seat !== undefined) {
|
||||
return TARGET.SEAT;
|
||||
var avatarUuid = Uuid.fromString(data.seat.user);
|
||||
if (Uuid.isNull(avatarUuid) || !AvatarList.getAvatar(avatarUuid)) {
|
||||
return TARGET.SEAT;
|
||||
} else {
|
||||
return TARGET.INVALID;
|
||||
}
|
||||
}
|
||||
|
||||
if (!props.visible) {
|
||||
|
|
Loading…
Reference in a new issue