From aaa30be0039c073e432c8e1c31431f38528aed10 Mon Sep 17 00:00:00 2001 From: PepperCode1 <44146161+peppercode1@users.noreply.github.com> Date: Wed, 14 Apr 2021 18:40:01 +0100 Subject: [PATCH] Allow more flexibility when registering BER (#1392) (cherry picked from commit f801c28735503c1dfe760be2ebc758a039c53260) --- .../client/rendereregistry/v1/BlockEntityRendererRegistry.java | 2 +- .../renderer/registry/BlockEntityRendererRegistryImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fabric-renderer-registries-v1/src/main/java/net/fabricmc/fabric/api/client/rendereregistry/v1/BlockEntityRendererRegistry.java b/fabric-renderer-registries-v1/src/main/java/net/fabricmc/fabric/api/client/rendereregistry/v1/BlockEntityRendererRegistry.java index 320e6cf1a..88637fd41 100644 --- a/fabric-renderer-registries-v1/src/main/java/net/fabricmc/fabric/api/client/rendereregistry/v1/BlockEntityRendererRegistry.java +++ b/fabric-renderer-registries-v1/src/main/java/net/fabricmc/fabric/api/client/rendereregistry/v1/BlockEntityRendererRegistry.java @@ -39,5 +39,5 @@ public interface BlockEntityRendererRegistry { * class is already loaded * @param the {@link BlockEntity} */ - void register(BlockEntityType blockEntityType, BlockEntityRendererFactory blockEntityRendererFactory); + void register(BlockEntityType blockEntityType, BlockEntityRendererFactory blockEntityRendererFactory); } diff --git a/fabric-renderer-registries-v1/src/main/java/net/fabricmc/fabric/impl/client/renderer/registry/BlockEntityRendererRegistryImpl.java b/fabric-renderer-registries-v1/src/main/java/net/fabricmc/fabric/impl/client/renderer/registry/BlockEntityRendererRegistryImpl.java index 2458b40c3..972041acc 100644 --- a/fabric-renderer-registries-v1/src/main/java/net/fabricmc/fabric/impl/client/renderer/registry/BlockEntityRendererRegistryImpl.java +++ b/fabric-renderer-registries-v1/src/main/java/net/fabricmc/fabric/impl/client/renderer/registry/BlockEntityRendererRegistryImpl.java @@ -30,7 +30,7 @@ public class BlockEntityRendererRegistryImpl implements BlockEntityRendererRegis private static BiConsumer, BlockEntityRendererFactory> handler = (type, function) -> map.put(type, function); @Override - public void register(BlockEntityType blockEntityType, BlockEntityRendererFactory blockEntityRendererFactory) { + public void register(BlockEntityType blockEntityType, BlockEntityRendererFactory blockEntityRendererFactory) { handler.accept(blockEntityType, blockEntityRendererFactory); }