This commit is contained in:
Vincent Lee committed 2018-08-29 14:04:50 -05:00
1 parent 0df5f64210
commit 651b17a9e6
1 file changed
+1 -2
@@ -452,8 +452,7 @@ public class EntityDoppleganger extends EntityLiving implements IBotaniaBoss, IE
protected void dropLoot(boolean wasRecentlyHit, int lootingModifier, @Nonnull DamageSource source)
{
// Save true killer, they get extra loot
if ("player".equals(source.getDamageType())
&& source.getTrueSource() instanceof EntityPlayer) {
if (wasRecentlyHit && source.getTrueSource() instanceof EntityPlayer) {
trueKiller = (EntityPlayer) source.getTrueSource();
}