mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 14:02:24 +01:00
Fix key error in game support algorithm
This commit is contained in:
parent
af2bdef1bf
commit
b151f78ca6
@ -123,7 +123,7 @@ class GameSupport:
|
||||
return package
|
||||
|
||||
def get(self, id_: str) -> Optional[GSPackage]:
|
||||
return self.packages[id_]
|
||||
return self.packages.get(id_)
|
||||
|
||||
def get_all_that_provide(self, modname: str) -> List[GSPackage]:
|
||||
return [package for package in self.packages.values() if modname in package.provides]
|
||||
|
Loading…
Reference in New Issue
Block a user