Fixed MythicMobs integration not working

This commit is contained in:
Auxilor 2021-11-08 19:22:15 +00:00
parent c672c64ac2
commit 8bf6a08e61
2 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,8 @@ import org.jetbrains.annotations.NotNull;
public interface MythicMobsWrapper extends Integration {
/**
* If an entity can drop items.
*
* @param entity The entity.
* @see MythicMobsManager#canDropItems(Entity)
*/

View File

@ -6,6 +6,7 @@ import org.bukkit.entity.Entity;
import org.jetbrains.annotations.NotNull;
public class IntegrationMythicMobs implements MythicMobsWrapper {
@Override
public boolean canDropItems(@NotNull final Entity entity) {
if (!MythicMobs.inst().getAPIHelper().isMythicMob(entity)) {
return true;