From cdf58f2f23423f8341c5c00d37fc08415b502d2c Mon Sep 17 00:00:00 2001 From: IchHabeHunger54 Date: Fri, 23 Feb 2024 16:41:34 +0100 Subject: [PATCH] fix an oversight --- docs/concepts/registries.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/concepts/registries.md b/docs/concepts/registries.md index 83381c3ad..5e901f779 100644 --- a/docs/concepts/registries.md +++ b/docs/concepts/registries.md @@ -110,8 +110,8 @@ BuiltInRegistries.BLOCKS.getKey(ExampleBlocksClass.EXAMPLE_BLOCK.get()); // retu If you just want to check for the presence of an object, this is also possible, though only with keys: ```java -Registries.BLOCKS.containsKey(new ResourceLocation("minecraft", "dirt")); // true -Registries.BLOCKS.containsKey(new ResourceLocation("create", "brass_ingot")); // true only if Create is installed +BuiltInRegistries.BLOCKS.containsKey(new ResourceLocation("minecraft", "dirt")); // true +BuiltInRegistries.BLOCKS.containsKey(new ResourceLocation("create", "brass_ingot")); // true only if Create is installed ``` As the last example shows, this is possible with any mod id, and thus a perfect way to check if a certain item from another mod exists.