mirror of
https://github.com/MilkBowl/VaultAPI.git
synced 2024-11-25 20:05:18 +01:00
parent
3d7d2de1d1
commit
b305ed5f0b
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
|||||||
/.classpath
|
/.classpath
|
||||||
/.project
|
/.project
|
||||||
/.settings
|
/.settings
|
||||||
|
/bin/
|
||||||
|
@ -817,12 +817,18 @@ public class Items {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (ItemInfo item : items) {
|
for (ItemInfo item : items) {
|
||||||
if (itemStack.getType().equals(item.getType()) && item.isDurable()) {
|
if (itemStack.getType().equals(item.getType())) {
|
||||||
|
if (itemStack.getType().isSolid() && item.getType().isSolid()) {
|
||||||
|
//Solid, so check durability (Podzol, Colored Wool, et al.)
|
||||||
|
if (item.isDurable()) {
|
||||||
return item;
|
return item;
|
||||||
} else if (itemStack.getType().equals(item.getType()) && item.getSubTypeId() == itemStack.getDurability()) {
|
}
|
||||||
|
} else {
|
||||||
|
//Not solid, so ignore durability (Stick, Stone Button, et al.)
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user