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:
Triplelexx 2017-02-02 01:12:55 +00:00
parent 5bf29f4657
commit 1a58dad3ad

View file

@ -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;
}