From b5a78bb1efce03065b86866ad2f8f3df22e1e0c7 Mon Sep 17 00:00:00 2001 From: IchHabeHunger54 Date: Mon, 26 Feb 2024 15:43:02 +0100 Subject: [PATCH] fix two wrong mentions of Registries --- 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 ebf044619..d4d97e13a 100644 --- a/docs/concepts/registries.md +++ b/docs/concepts/registries.md @@ -119,10 +119,10 @@ As the last example shows, this is possible with any mod id, and thus a perfect Finally, we can also iterate over all entries in a registry, either over the keys or over the entries (entries use the Java `Map.Entry` type): ```java -for (ResourceLocation id : Registries.BLOCKS.keySet()) { +for (ResourceLocation id : BuiltInRegistries.BLOCKS.keySet()) { // ... } -for (Map.Entry entry : Registries.BLOCKS.entrySet()) { +for (Map.Entry entry : BuiltInRegistries.BLOCKS.entrySet()) { // ... } ```