Skip to content

Commit

Permalink
Checkstyle fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Jun 18, 2024
1 parent 5dc0863 commit d9ca903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reference/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@

<module name="Indentation">
<property name="basicOffset" value="8"/>
<property name="caseIndent" value="0"/>
<property name="caseIndent" value="8"/>
<property name="throwsIndent" value="8"/>
<property name="arrayInitIndent" value="8"/>
<property name="lineWrappingIndentation" value="16"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import net.minecraft.item.ArmorItem;
import net.minecraft.item.ArmorMaterial;
import net.minecraft.item.ArmorMaterials;
import net.minecraft.recipe.Ingredient;
import net.minecraft.sound.SoundEvent;
import net.minecraft.sound.SoundEvents;
Expand All @@ -27,6 +26,7 @@ public int getDurability(ArmorItem.Type type) {
case LEGGINGS -> 15 * DURABILITY_MULTIPLIER;
case CHESTPLATE -> 16 * DURABILITY_MULTIPLIER;
case HELMET -> 11 * DURABILITY_MULTIPLIER;
default -> 0;
};
}

Expand All @@ -41,6 +41,7 @@ public int getProtection(ArmorItem.Type type) {
case BOOTS, HELMET -> 3;
case LEGGINGS -> 6;
case CHESTPLATE -> 8;
default -> 0;
};
}

Expand Down

0 comments on commit d9ca903

Please sign in to comment.