Skip to content

Commit

Permalink
Merge pull request #676 from AbhigyaKrishna/2.0
Browse files Browse the repository at this point in the history
Fixed adventure version detection
  • Loading branch information
AbhigyaKrishna authored Feb 8, 2024
2 parents d275fb8 + f916add commit b5f6a7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class AdventureReflectionUtil {
Constructor<?> SHOW_ENTITY_SERIALIZER_CONSTRUCTOR = Reflection.getConstructor(SHOW_ENTITY_SERIALIZER, 0);
SHOW_ENTITY_SERIALIZER_CREATE = gson -> invokeSafe(SHOW_ENTITY_SERIALIZER_CONSTRUCTOR);
} else {
IS_4_15_0_OR_NEWER = Reflection.getClassByNameWithoutException("net.kyori.option.OptionState") != null;
IS_4_15_0_OR_NEWER = Reflection.getClassByNameWithoutException("net.kyori.adventure.text.serializer.gson.TranslationArgumentSerializer") != null;

final Object optionState;
if (IS_4_15_0_OR_NEWER) {
Expand Down

0 comments on commit b5f6a7f

Please sign in to comment.