mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-14 01:04:24 +00:00
Fix Entityies not taking damage correctly. Closes #1511
This commit is contained in:
1 parent
a059a9a7fb
commit
17e5480b6e
2 files changed
+2
-2
No files matched your search
@@ -326,7 +326,7 @@ public class ForgeHooks
|
||||
|
||||
public static boolean onLivingAttack(EntityLivingBase entity, DamageSource src, float amount)
|
||||
{
|
||||
return MinecraftForge.EVENT_BUS.post(new LivingAttackEvent(entity, src, amount));
|
||||
return !MinecraftForge.EVENT_BUS.post(new LivingAttackEvent(entity, src, amount));
|
||||
}
|
||||
|
||||
public static float onLivingHurt(EntityLivingBase entity, DamageSource src, float amount)
|
||||
|
||||
Reference in new issue
Block a user