@@ -369,7 +369,7 @@ def get_minecraft(self) -> base.CurseGame:
369369 def sub_category (self , category_id : int ) -> Tuple [base .CurseCategory , ...]:
370370 """
371371 Returns all sub-catagories for the given category.
372-
372+
373373 We automatically pass the game ID when called,
374374 so the user can fetch sub-categories without passing a game ID.
375375 This allows us to operate like the BaseClient method for getting sub-categories.
@@ -398,7 +398,7 @@ def search_resource_packs(self, search: SearchParam=None) -> Tuple[base.CurseAdd
398398
399399 search = self .get_search ()
400400
401- search .categoryId = MinecraftWrapper .RESOURCE_PACKS
401+ search .rootCategoryId = MinecraftWrapper .RESOURCE_PACKS
402402
403403 return self .search (MinecraftWrapper .GAME_ID , search )
404404
@@ -419,7 +419,7 @@ def search_modpacks(self, search: SearchParam=None) -> Tuple[base.CurseAddon, ..
419419
420420 search = self .get_search ()
421421
422- search .categoryId = MinecraftWrapper .MODPACKS
422+ search .rootCategoryId = MinecraftWrapper .MODPACKS
423423
424424 return self .search (MinecraftWrapper .GAME_ID , search )
425425
@@ -440,7 +440,7 @@ def search_mods(self, search: SearchParam=None) -> Tuple[base.CurseAddon, ...]:
440440
441441 search = self .get_search ()
442442
443- search .categoryId = MinecraftWrapper .MODS
443+ search .rootCategoryId = MinecraftWrapper .MODS
444444
445445 return self .search (MinecraftWrapper .GAME_ID , search )
446446
@@ -461,7 +461,7 @@ def search_worlds(self, search: SearchParam=None) -> Tuple[base.CurseAddon, ...]
461461
462462 search = self .get_search ()
463463
464- search .categoryId = MinecraftWrapper .WORLDS
464+ search .rootCategoryId = MinecraftWrapper .WORLDS
465465
466466 return self .search (MinecraftWrapper .GAME_ID , search )
467467
@@ -482,6 +482,6 @@ def search_plugins(self, search: SearchParam=None) -> Tuple[base.CurseAddon]:
482482
483483 search = self .get_search ()
484484
485- search .categoryId = MinecraftWrapper .BUKKIT
485+ search .rootCategoryId = MinecraftWrapper .BUKKIT
486486
487487 return self .search (MinecraftWrapper .GAME_ID , search )
0 commit comments