Fix config retrieval

This commit is contained in:
Kogepan229 committed 2026-02-08 00:15:04 +09:00
1 parent b4e24d398a
commit bdb297af8b
5 files changed
+6 -5

No files matched your search

@@ -222,7 +222,7 @@ public class PartEssentiaExportBus extends PartBaseExportBus<AEEssentiaStack> im
if (data.hasKey(NBT_KEY_FILTER_NUMBER + index)) {
Aspect aspect = Aspect.aspects.get(data.getString(NBT_KEY_FILTER_NUMBER + index));
if (aspect != null) {
IAEStackInventory config = this.getAEInventoryByName(StorageName.NONE);
IAEStackInventory config = this.getAEInventoryByName(StorageName.CONFIG);
config.putAEStackInSlot(index, new AEEssentiaStack(aspect));
}
}
@@ -150,7 +150,7 @@ public class PartEssentiaImportBus extends PartBaseImportBus<AEEssentiaStack> {
if (data.hasKey(NBT_KEY_FILTER_NUMBER + index)) {
Aspect aspect = Aspect.aspects.get(data.getString(NBT_KEY_FILTER_NUMBER + index));
if (aspect != null) {
IAEStackInventory config = this.getAEInventoryByName(StorageName.NONE);
IAEStackInventory config = this.getAEInventoryByName(StorageName.CONFIG);
config.putAEStackInSlot(index, new AEEssentiaStack(aspect));
}
}
@@ -25,7 +25,7 @@ public class PartEssentiaLevelEmitter extends PartLevelEmitter {
super.readFromNBT(data);
if (data.hasKey(NBT_KEY_ASPECT_FILTER)) {
this.getAEInventoryByName(StorageName.NONE).putAEStackInSlot(
this.getAEInventoryByName(StorageName.CONFIG).putAEStackInSlot(
0,
new AEEssentiaStack(Aspect.aspects.get(data.getString(NBT_KEY_ASPECT_FILTER))));
}
@@ -47,7 +47,7 @@ public class PartEssentiaStorageBus extends PartStorageBus {
setPriority(data.getInteger(NBT_KEY_PRIORITY));
}
IAEStackInventory config = this.getAEInventoryByName(StorageName.NONE);
IAEStackInventory config = this.getAEInventoryByName(StorageName.CONFIG);
// Read the filter list
for (int index = 0; index < FILTER_SIZE; index++) {
if (data.hasKey(NBT_KEY_FILTER + index)) {
@@ -155,6 +155,7 @@ public class TileDistillationPatternEncoder extends ThETileInventory implements
@Override
public IAEStackInventory getAEInventoryByName(StorageName storageName) {
return this.aspectsInventory;
// aspectsInventory is not exposed externally through this method
return null;
}
}