mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 12:42:50 +00:00
Pixie Fixes.
This commit is contained in:
1 parent
8053188bfe
commit
1d4612857a
1 file changed
+7
-1
@@ -79,7 +79,6 @@ public class EntityPixie extends EntityFlyingCreature {
|
||||
target.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer) summoner), damage);
|
||||
else {
|
||||
target.attackEntityFrom(DamageSource.causeMobDamage(summoner), damage);
|
||||
System.out.println(target + " " + damage);
|
||||
}
|
||||
} else target.attackEntityFrom(DamageSource.causeMobDamage(this), damage);
|
||||
die();
|
||||
@@ -89,6 +88,13 @@ public class EntityPixie extends EntityFlyingCreature {
|
||||
renderYawOffset = rotationYaw = -((float)Math.atan2(motionX, motionZ)) * 180.0F / (float)Math.PI;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean attackEntityFrom(DamageSource par1DamageSource, float par2) {
|
||||
if(par1DamageSource.getEntity() != summoner)
|
||||
return super.attackEntityFrom(par1DamageSource, par2);
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEntityUpdate() {
|
||||
super.onEntityUpdate();
|
||||
|
||||
Reference in new issue
Block a user