diff --git a/src/main/java/com/gamingmesh/jobs/hooks/wildStacker/WildStackerHandler.java b/src/main/java/com/gamingmesh/jobs/hooks/wildStacker/WildStackerHandler.java index f1dd85db..4eada962 100644 --- a/src/main/java/com/gamingmesh/jobs/hooks/wildStacker/WildStackerHandler.java +++ b/src/main/java/com/gamingmesh/jobs/hooks/wildStacker/WildStackerHandler.java @@ -3,17 +3,20 @@ package com.gamingmesh.jobs.hooks.wildStacker; import java.util.List; import org.bukkit.entity.LivingEntity; +import org.bukkit.entity.Player; import com.bgsoftware.wildstacker.api.WildStackerAPI; import com.bgsoftware.wildstacker.api.objects.StackedEntity; public class WildStackerHandler { - public boolean isStackedEntity(LivingEntity entity) { - return WildStackerAPI.getStackedEntity(entity) != null; - } + public boolean isStackedEntity(LivingEntity entity) { + if (entity instanceof Player) + return false; + return WildStackerAPI.getStackedEntity(entity) != null; + } - public List getStackedEntities() { - return WildStackerAPI.getWildStacker().getSystemManager().getStackedEntities(); - } + public List getStackedEntities() { + return WildStackerAPI.getWildStacker().getSystemManager().getStackedEntities(); + } }