Fixed getVersion not returning the version.
This commit is contained in:
@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user