chore: duh

This commit is contained in:
cha0s 2021-04-07 00:50:36 -05:00
parent b4335729ac
commit 2c29107929

View File

@ -128,13 +128,7 @@ export default (latus) => class Pictured extends decorate(Trait) {
currentImageChanged: (oldKey, currentImage) => {
this.#currentImage = currentImage;
// Bounding box update.
this.entity.emit('updateVisibleBoundingBox');
// Only client/graphics.
if (!this.#sprites) {
return;
}
// Swap the image.
this.hideImage(oldKey);
this.showImage(currentImage);
},