mirror of
https://github.com/songoda/EpicHoppers.git
synced 2025-02-19 05:11:33 +01:00
Fixed issue with autocrafting and named items.
This commit is contained in:
parent
9c4fdd0971
commit
e5f645ba6b
@ -66,7 +66,9 @@ public class ModuleAutoCrafting extends Module {
|
||||
for (ItemStack item : recipe.recipe) {
|
||||
int amountHave = 0;
|
||||
for (ItemStack hopperItem : hopperCache.cachedInventory) {
|
||||
if (hopperItem != null && Methods.isSimilarMaterial(hopperItem, item))
|
||||
if (hopperItem != null
|
||||
&& !(hopperItem.hasItemMeta() && hopperItem.getItemMeta().hasDisplayName())
|
||||
&& Methods.isSimilarMaterial(hopperItem, item))
|
||||
amountHave += hopperItem.getAmount();
|
||||
}
|
||||
if (amountHave < item.getAmount()) {
|
||||
|
Loading…
Reference in New Issue
Block a user