From 48680a0fe29be4b2d51f8ebaaafe361cb36b576f Mon Sep 17 00:00:00 2001 From: David Rowe Date: Sun, 1 Dec 2019 21:46:35 +1300 Subject: [PATCH] Remove now-unnecessary getEntityProperties() call from WebTablet.js --- scripts/system/libraries/WebTablet.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/system/libraries/WebTablet.js b/scripts/system/libraries/WebTablet.js index a92fbf1065..b7593656a3 100644 --- a/scripts/system/libraries/WebTablet.js +++ b/scripts/system/libraries/WebTablet.js @@ -82,9 +82,7 @@ function calcSpawnInfo(hand, landscape) { cleanUpOldMaterialEntities = function() { var avatarEntityData = MyAvatar.getAvatarEntityData(); for (var entityID in avatarEntityData) { - var entityName = Entities.getEntityProperties(entityID, ["name"]).name; - - if (entityName === TABLET_MATERIAL_ENTITY_NAME) { + if (avatarEntityData[entityID].name === TABLET_MATERIAL_ENTITY_NAME) { Entities.deleteEntity(entityID); } }