From 129ee99e36eb396265b7f5478f5830386e5addb4 Mon Sep 17 00:00:00 2001 From: Brennan Ward <3682588+Shadows-of-Fire@users.noreply.github.com> Date: Fri, 1 Nov 2024 18:14:21 -0700 Subject: [PATCH] Fix Eclipse generic inference failure in testframework --- .../neoforged/testframework/registration/DeferredBlocks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testframework/src/main/java/net/neoforged/testframework/registration/DeferredBlocks.java b/testframework/src/main/java/net/neoforged/testframework/registration/DeferredBlocks.java index 5e26549556..bd4f4b4b0d 100644 --- a/testframework/src/main/java/net/neoforged/testframework/registration/DeferredBlocks.java +++ b/testframework/src/main/java/net/neoforged/testframework/registration/DeferredBlocks.java @@ -51,7 +51,7 @@ public DeferredBlockBuilder registerBlock(String name, Func } public DeferredBlockBuilder registerBlockWithBEType(String name, BiFunction>, ? extends B> func, TriFunction, BlockPos, BlockState, E> beType, BlockBehaviour.Properties props) { - final var be = registrationHelper.registrar(Registries.BLOCK_ENTITY_TYPE).register(name, () -> new BlockEntityType<>( + final Supplier> be = registrationHelper.registrar(Registries.BLOCK_ENTITY_TYPE).register(name, () -> new BlockEntityType<>( (pos, state) -> beType.apply(BuiltInRegistries.BLOCK_ENTITY_TYPE.getValue(ResourceLocation.fromNamespaceAndPath(getNamespace(), name)), pos, state), BuiltInRegistries.BLOCK.getValue(ResourceLocation.fromNamespaceAndPath(getNamespace(), name)))); return registerBlock(name, properties -> func.apply(properties, be), props);