Skip to content

Commit

Permalink
修复合成器可以使用漏斗放入输出槽的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Mar 12, 2024
1 parent edb2dae commit 1a88b68
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ protected void saveAdditional(CompoundTag tag) {

@Override
public boolean canPlaceItem(int index, ItemStack itemStack) {
if (index != this.getContainerSize() - 1 && this.disabled.get(index)) {
return false;
}
if (index == this.getContainerSize() - 1 || this.disabled.get(index)) return false;
ItemStack itemStack2 = this.items.get(index);
int j = itemStack2.getCount();
if (j >= itemStack2.getMaxStackSize()) {
Expand Down

0 comments on commit 1a88b68

Please sign in to comment.