mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Remove now-unnecessary getEntityProperties() call from WebTablet.js
This commit is contained in:
parent
200ff2499e
commit
48680a0fe2
1 changed files with 1 additions and 3 deletions
|
@ -82,9 +82,7 @@ function calcSpawnInfo(hand, landscape) {
|
||||||
cleanUpOldMaterialEntities = function() {
|
cleanUpOldMaterialEntities = function() {
|
||||||
var avatarEntityData = MyAvatar.getAvatarEntityData();
|
var avatarEntityData = MyAvatar.getAvatarEntityData();
|
||||||
for (var entityID in avatarEntityData) {
|
for (var entityID in avatarEntityData) {
|
||||||
var entityName = Entities.getEntityProperties(entityID, ["name"]).name;
|
if (avatarEntityData[entityID].name === TABLET_MATERIAL_ENTITY_NAME) {
|
||||||
|
|
||||||
if (entityName === TABLET_MATERIAL_ENTITY_NAME) {
|
|
||||||
Entities.deleteEntity(entityID);
|
Entities.deleteEntity(entityID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue