feat: 允许无限盘中放入空的无限盘
This commit is contained in:
parent
52cc600fb8
commit
2e30d48925
|
|
@ -326,8 +326,11 @@ public class InfinityBigIntegerCellInventory implements StorageCell {
|
||||||
if (amount == 0){
|
if (amount == 0){
|
||||||
return 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user