From eb068a674440276735d8b3769795b8e6f46bd0b2 Mon Sep 17 00:00:00 2001 From: thepigcat Date: Sun, 15 Dec 2024 16:30:28 +0100 Subject: [PATCH] capabilties --- src/main/java/com/portingdeadmods/nautec/Nautec.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/portingdeadmods/nautec/Nautec.java b/src/main/java/com/portingdeadmods/nautec/Nautec.java index b1a16ac..2180ca8 100644 --- a/src/main/java/com/portingdeadmods/nautec/Nautec.java +++ b/src/main/java/com/portingdeadmods/nautec/Nautec.java @@ -160,6 +160,10 @@ private static void registerBECaps(RegisterCapabilitiesEvent event) { if (containerBE.getFluidHandler() != null) { event.registerBlockEntity(Capabilities.FluidHandler.BLOCK, be.get(), (blockEntity, dir) -> ((ContainerBlockEntity) blockEntity).getFluidHandlerOnSide(dir)); } + + if (containerBE.getBacteriaStorage() != null){ + event.registerBlockEntity(NTCapabilities.BacteriaStorage.BLOCK, be.get(), (blockEntity, ctx) -> ((ContainerBlockEntity) blockEntity).getBacteriaStorage()); + } } } }