mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-09 07:37:34 +01:00
Fixed an issue with stats not being compatible with item types
This commit is contained in:
parent
bd84656c4a
commit
c9738bfbc0
@ -432,7 +432,7 @@ public abstract class ItemStat {
|
|||||||
* @return If a certain item type is compatible with this item stat
|
* @return If a certain item type is compatible with this item stat
|
||||||
*/
|
*/
|
||||||
public boolean isCompatible(Type type) {
|
public boolean isCompatible(Type type) {
|
||||||
String lower = getId().toLowerCase();
|
String lower = type.getId().toLowerCase();
|
||||||
return type.isSubtype() ? isCompatible(type.getParent())
|
return type.isSubtype() ? isCompatible(type.getParent())
|
||||||
: !compatibleTypes.contains("!" + lower) && (compatibleTypes.contains("all") || compatibleTypes.contains(lower)
|
: !compatibleTypes.contains("!" + lower) && (compatibleTypes.contains("all") || compatibleTypes.contains(lower)
|
||||||
|| compatibleTypes.contains(type.getItemSet().getName().toLowerCase()));
|
|| compatibleTypes.contains(type.getItemSet().getName().toLowerCase()));
|
||||||
|
Loading…
Reference in New Issue
Block a user