fix(memoize): enumerate food

This commit is contained in:
Sabe Jones
2024-07-01 09:02:12 -05:00
parent 6b46d04537
commit 60d5aaaaa6

View File

@@ -541,13 +541,11 @@ function buildFood () {
}
const memoizedBuildFood = memoize(buildFood);
Object.defineProperty(api, 'food', {
get () { return memoizedBuildFood(); },
enumerable: true,
});
api.appearances = appearances;
api.backgrounds = backgroundsTree();
api.backgroundsFlat = backgroundsFlat();