Never replace search tree on 1.16 with REI present
This commit is contained in:
parent
79219d286f
commit
98663fa416
|
|
@ -21,7 +21,7 @@ public class MinecraftMixin {
|
|||
@Inject(method = "createSearchTrees", at = @At("HEAD"), cancellable = true)
|
||||
private void replaceSearchTrees(CallbackInfo ci) {
|
||||
ci.cancel();
|
||||
if(ModList.get().getModFileById("jei") != null) {
|
||||
if(ModList.get().getModFileById("jei") != null && ModList.get().getModFileById("roughlyenoughitems") == null) {
|
||||
this.searchRegistry.register(SearchRegistry.CREATIVE_NAMES, new JEIBackedSearchTree(false));
|
||||
this.searchRegistry.register(SearchRegistry.CREATIVE_TAGS, new JEIBackedSearchTree(true));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user