Dont use named seeds in replanting. Fixes #3273

This commit is contained in:
t00thpick1 2017-08-31 23:47:28 -04:00
parent 2d7c5d7fd6
commit 4c3f3ee4e2

View File

@ -303,7 +303,9 @@ public class HerbalismManager extends SkillManager {
return;
}
if (!playerInventory.contains(seed, 1)) {
ItemStack seedStack = new ItemStack(seed);
if (!playerInventory.containsAtLeast(seedStack, 1)) {
return;
}
@ -315,7 +317,7 @@ public class HerbalismManager extends SkillManager {
return;
}
playerInventory.removeItem(new ItemStack(seed));
playerInventory.removeItem(seedStack);
player.updateInventory(); // Needed until replacement available
new HerbalismBlockUpdaterTask(blockState).runTaskLater(mcMMO.p, 0);
}