Skip to content

Commit

Permalink
Fixed missing equip sound for the armor material
Browse files Browse the repository at this point in the history
  • Loading branch information
Klemmbaustein committed Aug 27, 2024
1 parent 1243e51 commit fdd23e1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/main/java/com/luna/jetoverlay/armor/JetGoggles.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.Tag;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.world.item.ArmorItem;
import net.minecraft.world.item.ArmorMaterial;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.Ingredient;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.ArrayList;
Expand All @@ -34,17 +36,17 @@ public int getEnchantmentValue() {
}

@Override
public SoundEvent getEquipSound() {
return null;
public @NotNull SoundEvent getEquipSound() {
return SoundEvents.ARMOR_EQUIP_GENERIC;
}

@Override
public Ingredient getRepairIngredient() {
return null;
public @NotNull Ingredient getRepairIngredient() {
return Ingredient.EMPTY;
}

@Override
public String getName() {
public @NotNull String getName() {
return "jetgoggles";
}

Expand Down

0 comments on commit fdd23e1

Please sign in to comment.