Skip to content

Commit

Permalink
fix Update_Armor not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
CJCrafter committed Mar 13, 2023
1 parent 07dee50 commit 48c3f8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

group = "me.cjcrafter"
version = "2.0.2"
version = "2.0.3"

plugins {
`java-library`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public class ArmorUpdateListener implements Listener {

@EventHandler
public void onEquip(EntityEquipmentEvent event) {
if (!ArmorMechanics.INSTANCE.getConfig().getBoolean("Update_Armor"))
return;
if (!event.isEquipping())
return;

Expand All @@ -38,6 +40,5 @@ public void run() {
ArmorMechanicsAPI.setItem(equipment, event.getSlot(), item);
}
}.runTask(ArmorMechanics.INSTANCE);

}
}

0 comments on commit 48c3f8e

Please # to comment.