Permalink
Browse files

Merge pull request #958 from AngelDE98/develop

Fixed #893 VenomShooter Ammo
  • Loading branch information...
2 parents 139512b + 1e616a1 commit 91701f4f46f67f89e351b2f51f442545ea0795eb @Flet Flet committed May 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/com/mojang/mojam/entity/weapon/VenomShooter.java
@@ -2,6 +2,7 @@
import com.mojang.mojam.entity.Bullet;
import com.mojang.mojam.entity.BulletPoison;
+import com.mojang.mojam.entity.Player;
import com.mojang.mojam.entity.mob.Mob;
@@ -13,8 +14,8 @@ public VenomShooter(Mob owner) {
public Bullet getAmmo(double xDir, double yDir) {
Bullet bullet = new BulletPoison(owner, xDir, yDir, bulletDamage);
- bullet.pos.y = bullet.pos.y-19; //this will make the bullet look like its coming out of the snakes mouth
- bullet.pos.x = bullet.pos.x;
+ if (!(owner instanceof Player))
+ bullet.pos.y = bullet.pos.y-19; //this will make the bullet look like its coming out of the snakes mouth
return bullet;
}

0 comments on commit 91701f4

Please sign in to comment.