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

This commit is contained in:
C-H716 2025-09-27 16:46:42 +08:00
parent 52cc600fb8
commit 2e30d48925

View File

@ -326,8 +326,11 @@ public class InfinityBigIntegerCellInventory implements StorageCell {
if (amount == 0){
return 0;
}
// 不允许存储无限单元自身
if (what instanceof AEItemKey itemKey && itemKey.getItem() instanceof InfinityBigIntegerCellItem) {
// 不允许存储有物品的无限单元
if (what instanceof AEItemKey itemKey &&
itemKey.getItem() instanceof InfinityBigIntegerCellItem &&
itemKey.hasTag()
) {
return 0;
}