1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-02 14:29:07 +01:00

WildStacker fix

This commit is contained in:
Zrips 2021-11-29 16:47:44 +02:00
parent 71d24aa7dc
commit dd955ec79e

View File

@ -3,6 +3,7 @@ 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;
@ -10,6 +11,8 @@ import com.bgsoftware.wildstacker.api.objects.StackedEntity;
public class WildStackerHandler {
public boolean isStackedEntity(LivingEntity entity) {
if (entity instanceof Player)
return false;
return WildStackerAPI.getStackedEntity(entity) != null;
}