Fix more bad shapeless recipe matching. Closes #4557

This commit is contained in:
LexManos committed 2017-11-26 14:50:57 -08:00
1 parent 01b9110ada
commit 44d0e9f05d
4 files changed
+39 -2

No files matched your search

@@ -23,7 +23,7 @@
+ boolean simple = true;
+ for (Ingredient i : p_i47500_3_)
+ simple &= i.isSimple();
+ this.isSimple = simple;
+ this.isSimple = false; //simple; Always use Forge logic until Grum finds a fix for https://github.com/MinecraftForge/MinecraftForge/issues/4557
}
- @SideOnly(Side.CLIENT)
@@ -49,7 +49,7 @@ public class ShapelessOreRecipe extends IForgeRegistryEntry.Impl<IRecipe> implem
protected ItemStack output = ItemStack.EMPTY;
protected NonNullList<Ingredient> input = NonNullList.create();
protected ResourceLocation group;
protected boolean isSimple = true;
protected boolean isSimple = false; //true; Always use Forge logic until Grum finds a fix for https://github.com/MinecraftForge/MinecraftForge/issues/4557
public ShapelessOreRecipe(ResourceLocation group, Block result, Object... recipe){ this(group, new ItemStack(result), recipe); }
public ShapelessOreRecipe(ResourceLocation group, Item result, Object... recipe){ this(group, new ItemStack(result), recipe); }
@@ -0,0 +1,17 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:stone",
"data": 0
},
{
"item": "minecraft:stone",
"data": 0
}
],
"result": {
"item": "minecraft:stone",
"data": 1
}
}
@@ -0,0 +1,20 @@
{
"type": "forge:ore_shapeless",
"ingredients": [
{
"type": "forge:ore_dict",
"ore": "gravel"
},
{
"type": "forge:ore_dict",
"ore": "gravel"
},
{
"type": "forge:ore_dict",
"ore": "gravel"
}
],
"result": {
"item": "minecraft:flint"
}
}