Added FallingSand to list of intensive entities to be removed with /halt-activiy.

This commit is contained in:
Wizjany 2012-03-03 21:27:35 -05:00
parent 5ff2855eb0
commit 7fd424cf65

View File

@ -35,6 +35,8 @@
import org.bukkit.entity.Player;
import org.bukkit.entity.TNTPrimed;
import org.bukkit.entity.Tameable;
import org.bukkit.entity.FallingSand;
import org.bukkit.inventory.ItemStack;
import com.sk89q.worldedit.BlockVector;
@ -246,8 +248,9 @@ public static boolean isIntensiveEntity(Entity entity) {
return entity instanceof Item
|| entity instanceof TNTPrimed
|| entity instanceof ExperienceOrb
|| entity instanceof FallingSand
|| (entity instanceof LivingEntity
&& !(entity instanceof Tameable)
&& !(entity instanceof Player));
&& !(entity instanceof Tameable)
&& !(entity instanceof Player));
}
}