Fix soulscribe not dealing extra damage due to a 1.9 porting error. Closes #2148

This commit is contained in:
Vincent Lee committed 2017-01-30 21:58:35 -06:00
1 parent 02b4a25e70
commit 6d97e48de5
1 file changed
+1 -2
@@ -40,8 +40,7 @@ public class ItemEnderDagger extends ItemManasteelSword {
public boolean hitEntity(ItemStack stack, EntityLivingBase target, @Nonnull EntityLivingBase attacker) {
if(!target.worldObj.isRemote
&& target instanceof EntityEnderman
&& attacker instanceof EntityPlayer
&& ((EntityPlayer) attacker).getCooledAttackStrength(0) == 1) {
&& attacker instanceof EntityPlayer) {
target.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer) attacker), 20);
}