mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:01:18 +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 props = Entities.getEntityProperties(intersection.entityID, ['userData', 'visible']);
|
||||||
var data = parseJSON(props.userData);
|
var data = parseJSON(props.userData);
|
||||||
if (data !== undefined && data.seat !== undefined) {
|
if (data !== undefined && data.seat !== undefined) {
|
||||||
|
var avatarUuid = Uuid.fromString(data.seat.user);
|
||||||
|
if (Uuid.isNull(avatarUuid) || !AvatarList.getAvatar(avatarUuid)) {
|
||||||
return TARGET.SEAT;
|
return TARGET.SEAT;
|
||||||
|
} else {
|
||||||
|
return TARGET.INVALID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!props.visible) {
|
if (!props.visible) {
|
||||||
|
|
Loading…
Reference in a new issue