Skip to content

Commit

Permalink
trying to get vanilla shield enchanting to work
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarWind22 committed Feb 7, 2022
1 parent 9a950df commit e83ace0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
import com.github.crimsondawn45.fabricshieldlib.mixin.EnchantmentTargetMixin;

import net.minecraft.item.Item;
import net.minecraft.item.ShieldItem;
import net.minecraft.item.Items;

public class ShieldTarget extends EnchantmentTargetMixin {

@Override
public boolean isAcceptableItem(Item item) {

if(item instanceof ShieldItem) {
if(item.equals(Items.SHIELD)) {
return true;
}

Expand Down

0 comments on commit e83ace0

Please sign in to comment.