fix CrafterManagerContainer accepting items other than CraftingPattern (#2601)

This commit is contained in:
Darkere
2020-07-11 15:56:08 +02:00
committed by GitHub
parent a5e0060a56
commit 4d83c172e0

View File

@@ -175,7 +175,9 @@ public class CrafterManagerContainer extends BaseContainer {
if (slot.getHasStack()) {
stack = slot.getStack();
if (!new PatternItemValidator(getPlayer().getEntityWorld()).test(stack)) {
return ItemStack.EMPTY;
}
if (index < 9 * 4) {
if (!mergeItemStack(stack, 9 * 4, inventorySlots.size(), false)) {
return ItemStack.EMPTY;