From d4b08d9bf62da0e7a10e59ca714777e06a00cdfc Mon Sep 17 00:00:00 2001 From: Amaury Carrade Date: Mon, 12 Apr 2021 14:23:26 +0200 Subject: [PATCH] Update to QuartzLib 0.0.3 + upgraded outdated QL API calls --- pom.xml | 4 ++-- src/main/java/fr/moribus/imageonmap/gui/MapListGui.java | 6 +++--- src/main/resources/plugin.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 5be877d..4146a9e 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 fr.moribus ImageOnMap - 4.1.1 + 4.1.2 jar @@ -98,7 +98,7 @@ fr.zcraft quartzlib - 0.0.3 + 0.0.4 org.bstats diff --git a/src/main/java/fr/moribus/imageonmap/gui/MapListGui.java b/src/main/java/fr/moribus/imageonmap/gui/MapListGui.java index 5a6a6c8..be705f2 100644 --- a/src/main/java/fr/moribus/imageonmap/gui/MapListGui.java +++ b/src/main/java/fr/moribus/imageonmap/gui/MapListGui.java @@ -74,16 +74,16 @@ public class MapListGui extends ExplorerGui { 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()); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index d51fb38..d910af4 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: ImageOnMap main: fr.moribus.imageonmap.ImageOnMap -version: "4.1.1" +version: "4.1.2" api-version: "1.13"