mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Actually register the capabilities to the items and feed the transfer rate
This commit is contained in:
parent
ca68c2703a
commit
902b27914d
1 changed files with 2 additions and 1 deletions
|
@ -244,7 +244,8 @@ public final class ActuallyItems {
|
||||||
for (DeferredHolder<Item, ? extends Item> holder : ITEMS.getEntries()) {
|
for (DeferredHolder<Item, ? extends Item> holder : ITEMS.getEntries()) {
|
||||||
if (holder.get() instanceof ItemEnergy energyItem) {
|
if (holder.get() instanceof ItemEnergy energyItem) {
|
||||||
event.registerItem(Capabilities.EnergyStorage.ITEM, (stack, context) ->
|
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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue