mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-18 15:17:36 +01:00
Added experience orbs to the intensive entities list
This commit is contained in:
parent
9fea677b60
commit
1f7cce9535
@ -28,6 +28,7 @@
|
|||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
|
import org.bukkit.entity.ExperienceOrb;
|
||||||
import org.bukkit.entity.Item;
|
import org.bukkit.entity.Item;
|
||||||
import org.bukkit.entity.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -239,6 +240,7 @@ public static String replaceColorMacros(String str) {
|
|||||||
public static boolean isIntensiveEntity(Entity entity) {
|
public static boolean isIntensiveEntity(Entity entity) {
|
||||||
return entity instanceof Item
|
return entity instanceof Item
|
||||||
|| entity instanceof TNTPrimed
|
|| entity instanceof TNTPrimed
|
||||||
|
|| entity instanceof ExperienceOrb
|
||||||
|| (entity instanceof LivingEntity
|
|| (entity instanceof LivingEntity
|
||||||
&& !(entity instanceof Tameable)
|
&& !(entity instanceof Tameable)
|
||||||
&& !(entity instanceof Player));
|
&& !(entity instanceof Player));
|
||||||
|
Loading…
Reference in New Issue
Block a user