Added experience orbs to the intensive entities list

This commit is contained in:
zml2008 2011-09-16 20:02:46 -07:00
parent 9fea677b60
commit 1f7cce9535

View File

@ -28,6 +28,7 @@
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.entity.Entity;
import org.bukkit.entity.ExperienceOrb;
import org.bukkit.entity.Item;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
@ -239,6 +240,7 @@ public static String replaceColorMacros(String str) {
public static boolean isIntensiveEntity(Entity entity) {
return entity instanceof Item
|| entity instanceof TNTPrimed
|| entity instanceof ExperienceOrb
|| (entity instanceof LivingEntity
&& !(entity instanceof Tameable)
&& !(entity instanceof Player));