Misc advancement / recipe reload fixes including SPIGOT-3240
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -1077,10 +1077,6 @@ public final class CraftServer implements Server {
|
||||
|
||||
@Override
|
||||
public void resetRecipes() {
|
||||
// See SPIGOT-3240
|
||||
if (true) {
|
||||
return;
|
||||
}
|
||||
CraftingManager.recipes = new RegistryMaterials();
|
||||
CraftingManager.init();
|
||||
RecipesFurnace.getInstance().recipes = new RecipesFurnace().recipes;
|
||||
|
||||
@@ -21,7 +21,7 @@ public class CraftShapedRecipe extends ShapedRecipe implements CraftRecipe {
|
||||
}
|
||||
|
||||
public CraftShapedRecipe(ItemStack result, ShapedRecipes recipe) {
|
||||
this(CraftNamespacedKey.fromMinecraft(CraftingManager.recipes.b(recipe)), result);
|
||||
this(CraftNamespacedKey.fromMinecraft(recipe.key), result);
|
||||
this.recipe = recipe;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ public class CraftShapelessRecipe extends ShapelessRecipe implements CraftRecipe
|
||||
}
|
||||
|
||||
public CraftShapelessRecipe(ItemStack result, ShapelessRecipes recipe) {
|
||||
this(CraftNamespacedKey.fromMinecraft(recipe.key != null ? recipe.key : CraftingManager.recipes.b(recipe)), result);
|
||||
this(CraftNamespacedKey.fromMinecraft(recipe.key), result);
|
||||
this.recipe = recipe;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user