Compare commits

..

3 Commits

3 changed files with 3 additions and 2 deletions

View File

@ -42,6 +42,7 @@ maven {
```groovy ```groovy
modImplementation "com.mingliqiye.minecraft.enchantment.conflict:enchantmentdoesnotconflict:1.21-1.4" modImplementation "com.mingliqiye.minecraft.enchantment.conflict:enchantmentdoesnotconflict:1.21-1.4"
``` ```
- 其他模组加载器也是同理 我会保持API不变的
- Demo - Demo
```java ```java
import com.mingliqiye.minecraft.enchantment.conflict.enchantment.Enchantment; import com.mingliqiye.minecraft.enchantment.conflict.enchantment.Enchantment;

View File

@ -1,7 +1,7 @@
minecraft_version=1.21 minecraft_version=1.21
yarn_mappings=build.9 yarn_mappings=build.9
loader_version=0.16.13 loader_version=0.16.13
mod_version=1.4 mod_version=1.5
maven_group=com.mingliqiye.minecraft.enchantment.conflict maven_group=com.mingliqiye.minecraft.enchantment.conflict
archives_base_name=enchantmentdoesnotconflict archives_base_name=enchantmentdoesnotconflict
fabric_version=0.102.0 fabric_version=0.102.0

View File

@ -61,7 +61,7 @@ public class Enchantment {
List<Enchantment> groupsB = ofId(enchantmentB, config); List<Enchantment> groupsB = ofId(enchantmentB, config);
if (groupsA.isEmpty() && groupsB.isEmpty()) { if (groupsA.isEmpty() && groupsB.isEmpty()) {
return true; return null;
} }
for (Enchantment groupA : groupsA) { for (Enchantment groupA : groupsA) {