Skip to content

Commit

Permalink
Sea and Hell Infusion for tridents
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadows-of-Fire committed Aug 14, 2020
1 parent af16d58 commit 96d2c9c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'

version = '4.0.1'
version = '4.1.0'
group = 'shadows.apotheosis'
archivesBaseName = 'Apotheosis-1.16.1'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentType;
import net.minecraft.enchantment.Enchantments;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
Expand Down Expand Up @@ -62,4 +63,9 @@ public ITextComponent getDisplayName(int level) {
protected boolean canApplyTogether(Enchantment ench) {
return super.canApplyTogether(ench) && ench != ApotheosisObjects.SEA_INFUSION;
}

@Override
public boolean canApplyAtEnchantingTable(ItemStack stack) {
return super.canApplyAtEnchantingTable(stack) || Enchantments.IMPALING.canApplyAtEnchantingTable(stack);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentType;
import net.minecraft.enchantment.Enchantments;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
Expand Down Expand Up @@ -61,4 +62,9 @@ public ITextComponent getDisplayName(int level) {
protected boolean canApplyTogether(Enchantment ench) {
return super.canApplyTogether(ench) && ench != ApotheosisObjects.HELL_INFUSION;
}

@Override
public boolean canApplyAtEnchantingTable(ItemStack stack) {
return super.canApplyAtEnchantingTable(stack) || Enchantments.IMPALING.canApplyAtEnchantingTable(stack);
}
}

0 comments on commit 96d2c9c

Please sign in to comment.