Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/systems/NetIconSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ export class NetIconSystem extends System<NetConfigureIconComponent> {
const icon = workingConfig.icon!.icon;
const fieldName = icon as keyof typeof this.gameIcons;

if (!this.gameIcons.hasOwnProperty(fieldName))
if (!this.gameIcons.hasOwnProperty(fieldName)) {
console.error(`Game Icon resource not found in library ${icon}; Will not set the icon...`);
return;
}

const animation = this.resolveIconAnimation(entity);

Expand Down