diff --git a/src/main/java/me/ramidzkh/mekae2/AppliedMekanistics.java b/src/main/java/me/ramidzkh/mekae2/AppliedMekanistics.java index 3395ef7..b575dc9 100644 --- a/src/main/java/me/ramidzkh/mekae2/AppliedMekanistics.java +++ b/src/main/java/me/ramidzkh/mekae2/AppliedMekanistics.java @@ -173,15 +173,13 @@ private void initializeAttunement() { private static void registerGenericInvAdapter(RegisterCapabilitiesEvent event, Block block, BlockCapability capability, Function adapter) { - if (!event.isBlockRegistered(capability, block)) { - event.registerBlock(capability, (level, pos, state, blockEntity, context) -> { - var genericInv = level.getCapability(AppEngCapabilities.GENERIC_INTERNAL_INV, pos, state, - blockEntity, context); - if (genericInv != null) { - return adapter.apply(genericInv); - } - return null; - }, block); - } + event.registerBlock(capability, (level, pos, state, blockEntity, context) -> { + var genericInv = level.getCapability(AppEngCapabilities.GENERIC_INTERNAL_INV, pos, state, + blockEntity, context); + if (genericInv != null) { + return adapter.apply(genericInv); + } + return null; + }, block); } }