Fixed getVersion not returning the version.

This commit is contained in:
2022-01-16 13:56:47 +00:00
parent 73ed4ff729
commit 62abe17ad4

View File

@ -44,7 +44,7 @@ public final class TotemOfReviving {
public static String getVersion() {
Optional<? extends ModContainer> optional = ModList.get().getModContainerById(MOD_ID);
if (optional.isPresent()) {
return optional.get().getModId();
return optional.get().getModInfo().getVersion().toString();
}
return "0.0.0";
}