Skip to content

Commit

Permalink
chore: re-add forge item enchantment check
Browse files Browse the repository at this point in the history
  • Loading branch information
gabizou committed Sep 23, 2024
1 parent a1bd4c4 commit 1043e51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@
*/
package org.spongepowered.forge.hook;

import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.enchantment.Enchantment;
import org.spongepowered.common.hooks.ItemHooks;

public class ForgeItemHooks implements ItemHooks {

@Override
public boolean canEnchantmentBeAppliedToItem(Enchantment enchantment, ItemStack stack) {
return stack.canApplyAtEnchantingTable(enchantment);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
package org.spongepowered.common.accessor.world.level.chunk;

import net.minecraft.world.level.block.entity.BlockEntity;
import net.minecraft.world.level.block.entity.BlockEntityTicker;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;

Expand All @@ -34,5 +33,4 @@ public interface LevelChunk$BoundTickingBlockEntityAccessor {

@Accessor("blockEntity") BlockEntity accessor$blockEntity();

@Accessor("ticker") BlockEntityTicker accessor$ticker();
}

0 comments on commit 1043e51

Please sign in to comment.