mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-29 03:13:52 -07:00
[Bleeding] Check that vanilla recipes actually exist. Fixes BUKKIT-5277
When falling back to vanilla recipes in the iteration of recipes, a check is necessary to ensure that vanilla recipes are present. RecipeIterator has been modified to account for the multi-map setup.
This commit is contained in:
@@ -80,7 +80,7 @@ public class RecipesFurnace {
|
||||
do {
|
||||
if (!iterator.hasNext()) {
|
||||
// CraftBukkit start
|
||||
if (!vanilla) {
|
||||
if (!vanilla && recipes.size() != 0) {
|
||||
iterator = this.recipes.entrySet().iterator();
|
||||
vanilla = true;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user