From 1f7cce95353c92ed0ffea010613d994721f6eb60 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Fri, 16 Sep 2011 20:02:46 -0700 Subject: [PATCH] Added experience orbs to the intensive entities list --- src/main/java/com/sk89q/worldguard/bukkit/BukkitUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/BukkitUtil.java b/src/main/java/com/sk89q/worldguard/bukkit/BukkitUtil.java index a5d3435a..7dbee385 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/BukkitUtil.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/BukkitUtil.java @@ -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));