mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Fixes mana lens dyeing, closing #1708
Fixes having extra items beyond a dye and a lens messing everything up
This commit is contained in:
1 parent
0f9bc9fc53
commit
f9ce3676e1
1 file changed
+2
-1
@@ -44,6 +44,7 @@ public class LensDyeingRecipe implements IRecipe {
|
||||
foundDye = true;
|
||||
else return false;
|
||||
}
|
||||
else return false;//This means we have an additional item in the recipe after the lens and dye
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +61,7 @@ public class LensDyeingRecipe implements IRecipe {
|
||||
if(stack != null) {
|
||||
if(stack.getItem() instanceof ILens && lens == null)
|
||||
lens = stack;
|
||||
else color = getStackColor(stack);
|
||||
else color = getStackColor(stack);//We can assume if its not a lens its a dye because we checked it in matches()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user