mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:03:11 +02:00
fix name for tilt maze ball
This commit is contained in:
parent
ee210c5038
commit
2052b617b3
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var properties = {
|
var properties = {
|
||||||
name: 'Hifi Tilt Maze Ball',
|
name: 'home_sphere_tiltMazeBall',
|
||||||
type: 'Sphere',
|
type: 'Sphere',
|
||||||
position: this.getBallStartLocation(),
|
position: this.getBallStartLocation(),
|
||||||
dynamic: true,
|
dynamic: true,
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
var results = Entities.findEntities(MyAvatar.position, 10);
|
var results = Entities.findEntities(MyAvatar.position, 10);
|
||||||
results.forEach(function(result) {
|
results.forEach(function(result) {
|
||||||
var props = Entities.getEntityProperties(result, ['name']);
|
var props = Entities.getEntityProperties(result, ['name']);
|
||||||
var isAMazeBall = props.name.indexOf('Maze Ball');
|
var isAMazeBall = props.name.indexOf('MazeBall');
|
||||||
if (isAMazeBall > -1 && result === _this.ball) {
|
if (isAMazeBall > -1 && result === _this.ball) {
|
||||||
Entities.deleteEntity(result);
|
Entities.deleteEntity(result);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue