diff options
author | snowleo <schneeleo@gmail.com> | 2011-11-21 03:50:31 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-11-21 03:50:31 +0100 |
commit | a5853baf4cac35c2bb8f373ec0e61b2792531844 (patch) | |
tree | ab9180bb23abab059d33ce0bf3f54733cce0ff53 | |
parent | 90694b15ccc0625574c591d7c6f0305e082545cf (diff) | |
download | Essentials-a5853baf4cac35c2bb8f373ec0e61b2792531844.tar Essentials-a5853baf4cac35c2bb8f373ec0e61b2792531844.tar.gz Essentials-a5853baf4cac35c2bb8f373ec0e61b2792531844.tar.lz Essentials-a5853baf4cac35c2bb8f373ec0e61b2792531844.tar.xz Essentials-a5853baf4cac35c2bb8f373ec0e61b2792531844.zip |
Set shooter of Fireball or it will die instantly.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandfireball.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandfireball.java b/Essentials/src/com/earth2me/essentials/commands/Commandfireball.java index 8bb172a29..671d0f72b 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandfireball.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandfireball.java @@ -23,6 +23,7 @@ public class Commandfireball extends EssentialsCommand small = true; } final Vector direction = user.getEyeLocation().getDirection().multiply(2); - user.getWorld().spawn(user.getEyeLocation().add(direction.getX(), direction.getY(), direction.getZ()), small ? SmallFireball.class : Fireball.class); + Fireball fireball = user.getWorld().spawn(user.getEyeLocation().add(direction.getX(), direction.getY(), direction.getZ()), small ? SmallFireball.class : Fireball.class); + fireball.setShooter(user.getBase()); } } |