Skip to content

Commit

Permalink
sonorous staff can now be repaired
Browse files Browse the repository at this point in the history
  • Loading branch information
NewJumper authored and Pedro270707 committed Nov 26, 2024
1 parent ace5f6f commit 7443a78
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.kyanite.deeperdarker.content.items;

import com.kyanite.deeperdarker.content.DDItems;
import net.minecraft.core.BlockPos;
import net.minecraft.core.particles.ParticleTypes;
import net.minecraft.sounds.SoundEvents;
Expand Down Expand Up @@ -79,6 +80,11 @@ public void inventoryTick(ItemStack pStack, Level pLevel, Entity pEntity, int pS
}
}

@Override
public boolean isValidRepairItem(ItemStack stack, ItemStack repairCandidate) {
return repairCandidate.is(DDItems.SOUL_CRYSTAL);
}

@Override
public boolean isFoil(ItemStack pStack) {
return super.isFoil(pStack) || (pStack.hasTag() && pStack.getTag().getBoolean("charged"));
Expand Down

0 comments on commit 7443a78

Please sign in to comment.