Doc: fix wrong naming in api.md example code

This commit is contained in:
black-sliver 2022-05-10 00:32:16 +02:00 committed by Fabian Dill
parent 19dd447dcb
commit a020dea277
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ class MyGameWorld(World):
# ...
def set_rules(self):
set_rule(self.world.get_location("A Door", self.player),
lamda state: state._myworld_has_key(self.world, self.player))
lamda state: state._mygame_has_key(self.world, self.player))
```
### Generate Output