Remove now-unnecessary getEntityProperties() call from WebTablet.js

This commit is contained in:
David Rowe 2019-12-01 21:46:35 +13:00
parent 200ff2499e
commit 48680a0fe2

View file

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