/**
 * This class was created by BrassGoggledCoders modding team.
 * This class is available as part of the Steamcraft 2 Mod for Minecraft.
 *
 * Steamcraft 2 is open-source and is distributed under the MMPL v1.0 License.
 * (http://www.mod-buildcraft.com/MMPL-1.0.txt)
 *
 * Steamcraft 2 is based on the original Steamcraft Mod created by Proloe.
 * Steamcraft (c) Proloe 2011
 * (http://www.minecraftforum.net/topic/251532-181-steamcraft-source-code-releasedmlv054wip/)
 *
 */
package boilerplate.common;

import java.util.Arrays;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.world.World;

import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent;

public class ForgeEventHandler
{
	@SubscribeEvent
	public void tickPlayer(PlayerTickEvent event)
	{
		if (event.side.isClient() && (Boilerplate.instance.trailParticles > 0))
		{
			World world = event.player.worldObj;
			EntityPlayer player = event.player;
			if (Arrays.asList(Boilerplate.donors).contains(player.getCommandSenderName()))
			{
				for (int i = 0; i < Boilerplate.instance.trailParticles; i++)
					if (player.isAirBorne)
						world.spawnParticle("iconcrack_" + Item.getIdFromItem(Items.gold_ingot), (player.posX + world.rand.nextDouble()) - 0.7D,
								(player.posY + world.rand.nextDouble()) - 2.2D, (player.posZ + world.rand.nextDouble()) - 0.7D, -player.motionX,
								-player.motionY, -player.motionZ);
			}
			/* else */if (Arrays.asList(Boilerplate.devs).contains(player.getCommandSenderName()))
			{
				for (int i = 0; i < Boilerplate.instance.trailParticles; i++)
					if (player.isAirBorne)
						world.spawnParticle("flame", (player.posX + world.rand.nextDouble()) - 0.7D, (player.posY + world.rand.nextDouble()) - 3.2D,
								(player.posZ + world.rand.nextDouble()) - 0.7D, -player.motionX, -player.motionY, -player.motionZ);
			}
		}
	}
}

@@ -1054,16 +1054,47 @@
 player;%0A
+%09%09%09if(player.isAirBorne)%0A%09%09%09%7B%0A%09
 %09%09%09if (A
@@ -1162,34 +1162,36 @@
 nderName()))%0A%09%09%09
+%09
 %7B%0A
+%09
 %09%09%09%09for (int i =
@@ -1244,36 +1244,8 @@
 ++)%0A
-%09%09%09%09%09if (player.isAirBorne)%0A
 %09%09%09%09
@@ -1534,18 +1534,20 @@
 nZ);%0A%09%09%09
+%09
 %7D%0A
+%09
 %09%09%09/* el
@@ -1627,26 +1627,28 @@
 Name()))%0A%09%09%09
+%09
 %7B%0A
+%09
 %09%09%09%09for (int
@@ -1705,36 +1705,8 @@
 ++)%0A
-%09%09%09%09%09if (player.isAirBorne)%0A
 %09%09%09%09
@@ -1940,16 +1940,22 @@
 tionZ);%0A
+%09%09%09%09%7D%0A
 %09%09%09%7D%0A%09%09%7D

Check if player is in the air _before_ loops