chore: duh
This commit is contained in:
parent
b4335729ac
commit
2c29107929
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user