mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 03:50:40 +02:00
change age check
check for equal to -1 instead of < 1, think this would be more suitable if undefined is returned.
This commit is contained in:
parent
5bf29f4657
commit
1a58dad3ad
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ function update() {
|
|||
function checkForEntity() {
|
||||
var nameTagProps = Entities.getEntityProperties(nameTagEntityID);
|
||||
// it is possible for the age to not be a valid number, we check for this and return accordingly
|
||||
if(nameTagProps.age < 1) {
|
||||
if(nameTagProps.age == -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue