Skip to content

Commit

Permalink
Partition creative cell to every aspect
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyFire1 committed Feb 8, 2025
1 parent 7d04944 commit 265877b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class HandlerItemEssentiaCellCreative extends HandlerItemEssentiaCell {

public HandlerItemEssentiaCellCreative(final ItemStack storageStack, final ISaveProvider saveProvider) {
super(storageStack, saveProvider);

this.partitionAspects.addAll(Aspect.aspects.values());
this.totalBytes = 0;
this.totalEssentiaStorage = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemStack;

import thaumcraft.api.aspects.Aspect;
import thaumicenergistics.common.items.ItemEnum;
import thaumicenergistics.common.registries.ThEStrings;

Expand All @@ -22,7 +23,8 @@ public enum EnumEssentiaStorageTypes {
ThEStrings.Item_StorageComponent_16k),
Type_64K(3, 1 << 16, 12, "64k", EnumRarity.rare, 2.0, ThEStrings.Item_EssentiaCell_64k,
ThEStrings.Item_StorageComponent_64k),
Type_Creative(4, 0, 63, "creative", EnumRarity.epic, 0.0, ThEStrings.Item_EssentiaCell_Creative, null),
Type_Creative(4, 0, Aspect.aspects.size(), "creative", EnumRarity.epic, 0.0, ThEStrings.Item_EssentiaCell_Creative,
null),
Type_256K(5, 1 << 18, 24, "256k", EnumRarity.rare, 2.5, ThEStrings.Item_EssentiaCell_256k,
ThEStrings.Item_StorageComponent_256k),
Type_1024K(6, 1 << 20, 36, "1024k", EnumRarity.rare, 3.0, ThEStrings.Item_EssentiaCell_1024k,
Expand Down

0 comments on commit 265877b

Please sign in to comment.