Skip to content

Commit

Permalink
Fix a couple issues with entity categories
Browse files Browse the repository at this point in the history
  • Loading branch information
froobynooby committed Apr 28, 2024
1 parent 700e936 commit 5833a84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public boolean isMember(Class<?> entityClass) {
}

public boolean isMember(SnapshotEntity entity) {
return isMember(entity.getEntityClass());
return isMember(entity.getEntityType());
}

public boolean isMember(EntityType entityType) {
Expand All @@ -90,7 +90,7 @@ public boolean isCompatibleWith(Action action) {
}

public static EntityCategory ofName(String categoryName) {
return EntityCategory.entityCategoryMap.get(categoryName);
return EntityCategory.entityCategoryMap.get(categoryName.toLowerCase());
}

}

0 comments on commit 5833a84

Please sign in to comment.