mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 08:00:02 +03:00
31 lines
1.5 KiB
Diff
31 lines
1.5 KiB
Diff
--- ../src-base/minecraft/net/minecraft/util/ServerRecipeBookHelper.java
|
|
+++ ../src-work/minecraft/net/minecraft/util/ServerRecipeBookHelper.java
|
|
@@ -55,6 +55,11 @@
|
|
this.field_194335_f = ((ContainerPlayer)container).craftResult;
|
|
this.field_194336_g = ((ContainerPlayer)container).craftMatrix;
|
|
}
|
|
+ else if (container instanceof net.minecraftforge.common.crafting.IRecipeContainer)
|
|
+ {
|
|
+ this.field_194335_f = ((net.minecraftforge.common.crafting.IRecipeContainer)container).getCraftResult();
|
|
+ this.field_194336_g = ((net.minecraftforge.common.crafting.IRecipeContainer)container).getCraftMatrix();
|
|
+ }
|
|
|
|
if (this.field_194335_f != null && this.field_194336_g != null)
|
|
{
|
|
@@ -199,11 +204,11 @@
|
|
int i = this.field_194336_g.getWidth();
|
|
int j = this.field_194336_g.getHeight();
|
|
|
|
- if (this.field_194333_d instanceof ShapedRecipes)
|
|
+ if (this.field_194333_d instanceof net.minecraftforge.common.crafting.IShapedRecipe)
|
|
{
|
|
- ShapedRecipes shapedrecipes = (ShapedRecipes)this.field_194333_d;
|
|
- i = shapedrecipes.getWidth();
|
|
- j = shapedrecipes.getHeight();
|
|
+ net.minecraftforge.common.crafting.IShapedRecipe shapedrecipes = (net.minecraftforge.common.crafting.IShapedRecipe)this.field_194333_d;
|
|
+ i = shapedrecipes.getRecipeWidth();
|
|
+ j = shapedrecipes.getRecipeHeight();
|
|
}
|
|
|
|
int j1 = 1;
|