This commit is contained in:
1820982382
2026-10-28 12:24:10 +08:00
parent ce1a195277
commit 643802b329
179 changed files with 9465 additions and 2344 deletions
@@ -57,7 +57,7 @@ public class EssentiaGridService implements IEssentiaGrid, IGridServiceProvider
if (key == null) return 0;
return StorageHelper.poweredExtraction(
grid.getEnergyService(), storage, key, amount,
IActionSource.empty());
IActionSource.empty(), simulate ? Actionable.SIMULATE : Actionable.MODULATE);
}
private MEStorage getNativeStorage() {
@@ -74,6 +74,7 @@ public class EssentiaGridService implements IEssentiaGrid, IGridServiceProvider
@Override
public long extractEssentia(ResourceLocation aspectId, long amount, boolean simulate) {
if (amount <= 0) return 0;
// 优先从 monitor 提取
long monitorAmt = monitor.get(aspectId);
if (monitorAmt >= amount) {
@@ -148,4 +149,4 @@ public class EssentiaGridService implements IEssentiaGrid, IGridServiceProvider
}
return result;
}
}
}