Modify StonecutterContainer to allow shift-click insertion of any block with a valid recipe rather than limiting to blocks in an Immutable List (#6268)
This commit is contained in:
parent
124c78b926
commit
b1042f2c3c
1 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
--- a/net/minecraft/inventory/container/StonecutterContainer.java
|
||||
+++ b/net/minecraft/inventory/container/StonecutterContainer.java
|
||||
@@ -183,7 +183,7 @@
|
||||
if (!this.func_75135_a(itemstack1, 2, 38, false)) {
|
||||
return ItemStack.field_190927_a;
|
||||
}
|
||||
- } else if (field_217084_c.contains(item)) {
|
||||
+ } else if (!this.field_217090_i.func_199532_z().func_215370_b(IRecipeType.field_222154_f, new Inventory(itemstack1), this.field_217090_i).isEmpty()) {
|
||||
if (!this.func_75135_a(itemstack1, 0, 1, false)) {
|
||||
return ItemStack.field_190927_a;
|
||||
}
|
Loading…
Reference in a new issue