Skip to content

Commit 1e707ed

Browse files
committed
Make ItemModule requirement return false if the target doesn't have a module
1 parent af616f5 commit 1e707ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/studio/magemonkey/divinity/stats/items/requirements/item/ItemModuleRequirement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public Class<String[]> getParameterClass() {
4949
@Override
5050
public boolean canApply(@NotNull ItemStack src, @NotNull ItemStack target) {
5151
String[] modules = this.getRaw(src);
52-
if (modules == null || modules.length == 0) return true;
52+
if (modules == null || modules.length == 0) return false;
5353

5454
QModule targetModule = ItemStats.getModule(target);
5555
if (targetModule == null) return false;

0 commit comments

Comments
 (0)