mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 11:19:19 +00:00
Fix soulscribe not dealing extra damage due to a 1.9 porting error. Closes #2148
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user