From 902b27914d817c2341ce7cb84040dff311fa1b1e Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Sun, 11 Aug 2024 20:32:27 +0200 Subject: [PATCH] Actually register the capabilities to the items and feed the transfer rate --- .../de/ellpeck/actuallyadditions/mod/items/ActuallyItems.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ActuallyItems.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ActuallyItems.java index 249102d24..9d82f4ef7 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ActuallyItems.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ActuallyItems.java @@ -244,7 +244,8 @@ public final class ActuallyItems { for (DeferredHolder holder : ITEMS.getEntries()) { if (holder.get() instanceof ItemEnergy energyItem) { event.registerItem(Capabilities.EnergyStorage.ITEM, (stack, context) -> - new ComponentEnergyStorage(stack, ActuallyComponents.ENERGY_STORAGE.get(), energyItem.maxPower) + new ComponentEnergyStorage(stack, ActuallyComponents.ENERGY_STORAGE.get(), energyItem.maxPower, energyItem.transfer), + energyItem ); } }