[1.20.2] The final fixes to make all tests pass!
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
This commit is contained in:
1 parent
be89cb3b2d
commit
74ebac0550
2 files changed
+11
-1
No files matched your search
+4
-1
@@ -222,8 +222,11 @@ public class ItemStackDeserializer implements Function<Map<String, Object>, Item
|
||||
// From MC 1.20.1 to 1.20
|
||||
this.register(3463, NO_CONVERSION);
|
||||
|
||||
// From MC 1.20.2 to 1.20.1
|
||||
this.register(3465, NO_CONVERSION);
|
||||
|
||||
// Maximum supported data version
|
||||
this.max_version = 3465; // MC 1.20.1
|
||||
this.max_version = 3578; // MC 1.20.2
|
||||
}
|
||||
|
||||
// Registers a converter if it can convert from a future data version only
|
||||
|
||||
+7
@@ -178,6 +178,9 @@ optional class FurnaceRecipe extends IRecipe {
|
||||
java.util.List filteredResult = new java.util.ArrayList();
|
||||
while (allRecipes.hasNext()) {
|
||||
Object recipe = allRecipes.next();
|
||||
#if version >= 1.20.2
|
||||
recipe = ((net.minecraft.world.item.crafting.RecipeHolder) recipe).value();
|
||||
#endif
|
||||
if (recipe instanceof FurnaceRecipe) {
|
||||
filteredResult.add(recipe);
|
||||
}
|
||||
@@ -197,6 +200,10 @@ class CraftingManager {
|
||||
java.util.List filteredResult = new java.util.ArrayList();
|
||||
while (allRecipes.hasNext()) {
|
||||
Object recipe = allRecipes.next();
|
||||
#if version >= 1.20.2
|
||||
recipe = ((net.minecraft.world.item.crafting.RecipeHolder) recipe).value();
|
||||
#endif
|
||||
|
||||
if (recipe instanceof FurnaceRecipe) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user