Skip to content

Commit

Permalink
Inner Berserk, Rune Arrow Piercing, Bump Version
Browse files Browse the repository at this point in the history
Made Inner Berserk and Rune Arrow Piercing actually do something
Bump version
  • Loading branch information
Charles445 committed Dec 11, 2021
1 parent d631227 commit 7cb9f28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge'
//Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.


version = "0.5.3"
version = "0.5.4"
group = "com.Shultrea.Rin" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "SoManyEnchantments"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class EnchantmentInnerBerserk extends EnchantmentBase
{
public EnchantmentInnerBerserk()
{
super(Rarity.VERY_RARE, EnumEnchantmentType.ARMOR_CHEST, new EntityEquipmentSlot[]{EntityEquipmentSlot.MAINHAND});
super(Rarity.VERY_RARE, EnumEnchantmentType.ARMOR_CHEST, new EntityEquipmentSlot[]{EntityEquipmentSlot.CHEST});
this.setName("InnerBerserk");
this.setRegistryName("InnerBerserk");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import com.Shultrea.Rin.Prop_Sector.IArrowProperties;
import com.Shultrea.Rin.Utility_Sector.UtilityAccessor;

import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.Enchantment.Rarity;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.enchantment.EnumEnchantmentType;
import net.minecraft.entity.EntityLivingBase;
Expand All @@ -18,9 +16,8 @@
import net.minecraft.item.ItemStack;
import net.minecraft.util.EntityDamageSource;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.util.text.translation.I18n;
import net.minecraftforge.event.entity.EntityJoinWorldEvent;
import net.minecraftforge.event.entity.living.LivingDamageEvent;
import net.minecraftforge.event.entity.living.LivingHurtEvent;
import net.minecraftforge.fml.common.eventhandler.EventPriority;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

Expand Down Expand Up @@ -98,7 +95,7 @@ public void onEvent(EntityJoinWorldEvent event)
}

@SubscribeEvent(priority = EventPriority.LOWEST)
public void onArrowPierce(LivingDamageEvent e){
public void onArrowPierce(LivingHurtEvent e){
if(e.getSource().damageType != "arrow" && e.getSource().isUnblockable())
return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class somanyenchantments {
// Mod Info
public static final String MODID = "somanyenchantments";
public static final String NAME = "Rin's So Many Enchantments?";
public static final String VERSION = "0.5.3";
public static final String VERSION = "0.5.4";
// Mod Info End

//Boolean
Expand Down

0 comments on commit 7cb9f28

Please sign in to comment.