[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:
t00thpick1
2014-01-05 00:41:06 -05:00
committed by feildmaster
parent b8143c63c2
commit fef9f9692f
2 changed files with 15 additions and 10 deletions

View File

@@ -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 {