Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown prototype: simple-entity-with-force #16

Open
USSX-Hares opened this issue Nov 25, 2023 · 0 comments · May be fixed by #17
Open

Unknown prototype: simple-entity-with-force #16

USSX-Hares opened this issue Nov 25, 2023 · 0 comments · May be fixed by #17

Comments

@USSX-Hares
Copy link

USSX-Hares commented Nov 25, 2023

Blueprint Storage

Same blueprint storage as in #15

Workaround

Changed lines 231-234 to the following:

From

if prototype not in self._type_mapping:
raise KeyError(f"unknown prototype '{prototype}'")
type = self._type_mapping[prototype]
bucket = self._data[type]

To

        type: Index.Type
        if (prototype in self._type_mapping):
            type = self._type_mapping.get(prototype)
        elif ('entity' in prototype):
            type = Index.Type.ENTITY
        else:
            raise KeyError(f"unknown prototype '{prototype}'")
@kieranknowles1 kieranknowles1 linked a pull request Jun 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant