feat: 允许无限盘中放入空的无限盘

This commit is contained in:
C-H716 2025-09-27 20:22:57 +08:00
parent f60629aadf
commit a95389e5fa

View File

@ -343,7 +343,10 @@ public class InfinityBigIntegerCellInventory implements StorageCell {
return 0;
}
// 不允许存储无限单元自身
if (what instanceof AEItemKey itemKey && itemKey.getItem() instanceof InfinityBigIntegerCellItem) {
if (what instanceof AEItemKey itemKey &&
itemKey.getItem() instanceof InfinityBigIntegerCellItem &&
itemKey.get(DataComponents.CUSTOM_DATA) != null
) {
return 0;
}