Skip to content

Commit

Permalink
version 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinhong11 committed Jul 31, 2024
1 parent 84b119b commit a1f6432
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.lins.mmmjjkx</groupId>
<artifactId>RykenSlimefunCustomizer</artifactId>
<version>1.4</version>
<version>1.4.1</version>
<packaging>jar</packaging>

<name>RykenSlimefunCustomizer</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public void setup(Plugin inst) {

if (projectIds.containsKey(id)) {
ProjectAddon addon = projectAddons.get(id);
if (addon == null) {
ExceptionHandler.handleError("无法正常加载附属 " + id + "!请检查所有附属内容!");
continue;
}

if (addon.isMarkAsDepend()) {
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack;
import io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType;
import io.github.thebusybiscuit.slimefun4.core.attributes.ProtectionType;
import io.github.thebusybiscuit.slimefun4.implementation.Slimefun;
import io.github.thebusybiscuit.slimefun4.libraries.dough.collections.Pair;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -96,7 +97,7 @@ public List<CustomArmorPiece> readEach(String s) {
return null;
}

potionEffects.add(new PotionEffect(type, Integer.MAX_VALUE, amplifier));
potionEffects.add(new PotionEffect(type, (Slimefun.getCfg().getInt("options.armor-update-interval") + 3) * 20, amplifier));
}

pieces.add(new CustomArmorPiece(
Expand Down

0 comments on commit a1f6432

Please sign in to comment.