Fixed a bug with the smoke effect for the faction home and one NPE.

This commit is contained in:
Olof Larsson committed 2011-10-13 22:49:41 +02:00
1 parent 88fe43d600
commit 618c5fceed
5 files changed
+11 -12

No files matched your search

@@ -131,9 +131,9 @@ public class CmdHome extends FCommand
{
List<Location> smokeLocations = new ArrayList<Location>();
smokeLocations.add(me.getLocation());
smokeLocations.add(me.getLocation().add(0, 1, 0));
smokeLocations.add(me.getLocation().clone().add(0, 1, 0));
smokeLocations.add(myFaction.getHome());
smokeLocations.add(myFaction.getHome().add(0, 1, 0));
smokeLocations.add(myFaction.getHome().clone().add(0, 1, 0));
SmokeUtil.spawnCloudRandom(smokeLocations, Conf.homesTeleportCommandSmokeEffectThickness);
}