feat: 允许无限盘中放入空的无限盘
This commit is contained in:
parent
f60629aadf
commit
a95389e5fa
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user