Skip to content

Commit

Permalink
Scythe can have Fortune and put mcmod credits
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykrast committed Oct 7, 2018
1 parent d6d31a9 commit 4ddb494
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.init.Blocks;
import net.minecraft.init.Enchantments;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemSword;
import net.minecraft.network.play.client.CPacketPlayerDigging;
Expand Down Expand Up @@ -132,5 +133,11 @@ protected boolean harvestBlock(World world, BlockPos pos, EntityPlayer player) {
}
return true;
}

@Override
public boolean canApplyAtEnchantingTable(ItemStack stack, net.minecraft.enchantment.Enchantment enchantment) {
if (enchantment == Enchantments.FORTUNE) return true;
return super.canApplyAtEnchantingTable(stack, enchantment);
}

}
2 changes: 1 addition & 1 deletion src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "",
"updateUrl": "",
"authorList": ["Lykrast"],
"credits": "",
"credits": "Team Fortress 2 for the Merasmus sounds, Thermal Foundation for the Sickle code",
"logoFile": "",
"screenshots": [],
"dependencies": []
Expand Down

0 comments on commit 4ddb494

Please sign in to comment.