Specified damage tweak to magic only

Specified damage tweaks to magic only
This commit is contained in:
JAWolfe04 2016-02-01 00:28:14 -06:00
parent f72606f44c
commit 4fe8e4fffe
4 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@ import java.util.Random;
import com.bioxx.tfc.api.TFCBlocks;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
@ -41,7 +40,7 @@ public class PlayerHandler
@SubscribeEvent
public void onDamaged(LivingHurtEvent event)
{
if(event.ammount <= 20 && event.entity instanceof EntityPlayer)
if(event.entity instanceof EntityPlayer && event.source == DamageSource.magic && event.ammount <= 20)
{
event.ammount = event.ammount * 50;