From bb8d3496f8d5d173e35f5c627fcd0d9889c6a5e7 Mon Sep 17 00:00:00 2001 From: therealemissions Date: Wed, 27 Mar 2024 19:17:55 +0000 Subject: [PATCH] ignore null warning --- .../net/dumbcode/projectnublar/core/registry/Registrar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/dumbcode/projectnublar/core/registry/Registrar.java b/src/main/java/net/dumbcode/projectnublar/core/registry/Registrar.java index b2ec7d4..bbfe60b 100644 --- a/src/main/java/net/dumbcode/projectnublar/core/registry/Registrar.java +++ b/src/main/java/net/dumbcode/projectnublar/core/registry/Registrar.java @@ -98,7 +98,7 @@ public static void register(@NotNull RegisterEvent event) { validBlocks.add(block.getRegistry().block().get()); } BlockEntityType.Builder builder = BlockEntityType.Builder.of(entity.getBlockEntityConstructor(), validBlocks.toArray(new Block[0])); - BlockEntityType build = builder.build(null); + @SuppressWarnings("ConstantConditions") BlockEntityType build = builder.build(null); helper.register(ProjectNublar.resourceLocation(entity.getRegisterName()), build); } });