summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-11-21 03:50:31 +0100
committersnowleo <schneeleo@gmail.com>2011-11-21 03:50:31 +0100
commit0623c3902d32e3bd9efffa1c18fefeed4d310004 (patch)
treec9734486099af56ffcebfa4d4bbc01b6ecaa2d86
parent4597d5d34a52cab89485ff9bc43ae5846697e99a (diff)
downloadEssentials-0623c3902d32e3bd9efffa1c18fefeed4d310004.tar
Essentials-0623c3902d32e3bd9efffa1c18fefeed4d310004.tar.gz
Essentials-0623c3902d32e3bd9efffa1c18fefeed4d310004.tar.lz
Essentials-0623c3902d32e3bd9efffa1c18fefeed4d310004.tar.xz
Essentials-0623c3902d32e3bd9efffa1c18fefeed4d310004.zip
Set shooter of Fireball or it will die instantly.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandfireball.java3
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());
}
}