Update to QuartzLib 0.0.3 + upgraded outdated QL API calls

This commit is contained in:
Amaury Carrade 2021-04-12 14:23:26 +02:00
parent 502b4615f0
commit d4b08d9bf6
3 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fr.moribus</groupId>
<artifactId>ImageOnMap</artifactId>
<version>4.1.1</version>
<version>4.1.2</version>
<packaging>jar</packaging>
<properties>
@ -98,7 +98,7 @@
<dependency>
<groupId>fr.zcraft</groupId>
<artifactId>quartzlib</artifactId>
<version>0.0.3</version>
<version>0.0.4</version>
</dependency>
<dependency>
<groupId>org.bstats</groupId>

View File

@ -74,16 +74,16 @@ public class MapListGui extends ExplorerGui<ImageMap> {
String mapDescription;
if (map instanceof SingleMap) {
/// Displayed subtitle description of a single map on the list GUI
mapDescription = I.t(getPlayerLocale(), "{white}Single map");
mapDescription = I.tl(getPlayerLocale(), "{white}Single map");
} else {
PosterMap poster = (PosterMap) map;
if (poster.hasColumnData()) {
/// Displayed subtitle description of a poster map on the list GUI (columns × rows in english)
mapDescription = I.t(getPlayerLocale(), "{white}Poster map ({0} × {1})", poster.getColumnCount(),
mapDescription = I.tl(getPlayerLocale(), "{white}Poster map ({0} × {1})", poster.getColumnCount(),
poster.getRowCount());
} else {
/// Displayed subtitle description of a poster map without column data on the list GUI
mapDescription = I.t(getPlayerLocale(), "{white}Poster map ({0} parts)", poster.getMapCount());
mapDescription = I.tl(getPlayerLocale(), "{white}Poster map ({0} parts)", poster.getMapCount());
}
}

View File

@ -1,6 +1,6 @@
name: ImageOnMap
main: fr.moribus.imageonmap.ImageOnMap
version: "4.1.1"
version: "4.1.2"
api-version: "1.13"