Update gameutils.py

This commit is contained in:
Ivan Ms 2021-12-22 19:44:07 +05:00 committed by GitHub
parent 5382fe1c5f
commit 02931f8aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ class SharedObjects:
def __init__(self) -> None:
activity = ba.getactivity()
if hasattr(activity, self._STORENAME):
if self._STORENAME in activity.customdata:
raise RuntimeError('Use SharedObjects.get() to fetch the'
' shared instance for this activity.')
self._object_material: Optional[ba.Material] = None