Compare commits

..
3 Commits
4 changed files with 10 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -11,5 +11,5 @@ dependencies {
api('net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev')
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.440:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.448:dev')
}
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.41'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.42'
}
@@ -43,6 +43,9 @@ public class ItemElectricGoggles extends ItemArmor
this.setCreativeTab(EMT.TAB);
}
@Override
public void setDamage(ItemStack stack, int damage) {}
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister iconRegister) {
@@ -27,6 +27,11 @@ import thaumcraft.common.entities.monster.EntityTaintChicken;
public class EMTEventHandler {
/**
* Intercept the onLivingHurt event so that we can mitigate fall damage with feather wings
*
* @param e Entity that is being damaged
*/
@SubscribeEvent
public void onLivingHurt(LivingHurtEvent e) {
if (!(e.entityLiving instanceof EntityPlayer) || e.source != DamageSource.fall) return;