Fixed getVersion not returning the version.
This commit is contained in:
@ -44,7 +44,7 @@ public final class TotemOfReviving {
|
|||||||
public static String getVersion() {
|
public static String getVersion() {
|
||||||
Optional<? extends ModContainer> optional = ModList.get().getModContainerById(MOD_ID);
|
Optional<? extends ModContainer> optional = ModList.get().getModContainerById(MOD_ID);
|
||||||
if (optional.isPresent()) {
|
if (optional.isPresent()) {
|
||||||
return optional.get().getModId();
|
return optional.get().getModInfo().getVersion().toString();
|
||||||
}
|
}
|
||||||
return "0.0.0";
|
return "0.0.0";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user