mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
Cleanup finishBrewing a bit
This commit is contained in:
parent
7f9ada14c8
commit
254f3b5ac9
@ -101,9 +101,12 @@ public final class AlchemyPotionBrewer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < 3; i++) {
|
for (int i = 0; i < 3; i++) {
|
||||||
ItemStack item = inventory.getItem(i);
|
ItemStack item = inventory.getItem(i).clone();
|
||||||
|
|
||||||
|
if (isEmpty(item) || !PotionConfig.getInstance().isValidPotion(item)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isEmpty(item) && PotionConfig.getInstance().isValidPotion(item)) {
|
|
||||||
AlchemyPotion input = PotionConfig.getInstance().getPotion(item.getDurability());
|
AlchemyPotion input = PotionConfig.getInstance().getPotion(item.getDurability());
|
||||||
AlchemyPotion output = PotionConfig.getInstance().getPotion(input.getChildDataValue(ingredient));
|
AlchemyPotion output = PotionConfig.getInstance().getPotion(input.getChildDataValue(ingredient));
|
||||||
|
|
||||||
@ -115,7 +118,6 @@ public final class AlchemyPotionBrewer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!forced) {
|
if (!forced) {
|
||||||
scheduleUpdate(inventory);
|
scheduleUpdate(inventory);
|
||||||
|
Loading…
Reference in New Issue
Block a user