update type

This commit is contained in:
Indyuce 2019-08-29 14:02:16 +02:00
parent 46aea9c4bf
commit e85274e39a

View File

@ -197,9 +197,9 @@ public class Type {
config.save();
}
public boolean canHaveStat(ItemStat stat) {
public boolean canHave(ItemStat stat) {
if (isSubtype())
return getParent().canHaveStat(stat);
return getParent().canHave(stat);
for (String s1 : stat.getCompatibleTypes()) {
if (s1.equalsIgnoreCase("!" + getId()))