mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-14 01:04:24 +00:00
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:
1 parent
124c78b926
commit
b1042f2c3c
1 file changed
+11
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user