diff --git a/src/main/java/net/minestom/server/tag/TagReadable.java b/src/main/java/net/minestom/server/tag/TagReadable.java index 18deb2f02..b75d582ea 100644 --- a/src/main/java/net/minestom/server/tag/TagReadable.java +++ b/src/main/java/net/minestom/server/tag/TagReadable.java @@ -24,7 +24,9 @@ public interface TagReadable { * @param tag the tag to check * @return true if the tag is present, false otherwise */ - boolean hasTag(@NotNull Tag tag); + default boolean hasTag(@NotNull Tag tag) { + return getTag(tag) != null; + } /** * Converts an nbt compound to a tag reader.