Skip to content
Snippets Groups Projects
Commit c67cd24f authored by Ryan Tresman's avatar Ryan Tresman
Browse files

small fix to nonetype import error

parent 2a03dd86
No related branches found
No related tags found
No related merge requests found
import random
from types import NoneType
......@@ -261,7 +260,7 @@ class Chest(GameObject):
contains_type = type(self.contains)
if contains_type == NoneType:
if contains_type == type(None):
print(f"The {self.id.upper()} was weirdly empty...")
elif issubclass(contains_type, GameObject):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment