From e640cbb1a3cf4c5ffc83b87d90e7af645a9eb7b3 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Tue, 9 May 2023 14:12:04 +0200 Subject: [PATCH] Fix MCDataConverter with new reflect wrapper stuff --- .../java/fr/pandacube/lib/paper/players/PaperOffPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/players/PaperOffPlayer.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/players/PaperOffPlayer.java index a674522..2b17922 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/players/PaperOffPlayer.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/players/PaperOffPlayer.java @@ -167,7 +167,7 @@ public interface PaperOffPlayer extends AbstractOffPlayer { .getPlayerData(getUniqueId().toString()); if (convertTag) { int i = data.contains("DataVersion", 3) ? data.getInt("DataVersion") : -1; - data = MCDataConverter.convertTag(MCTypeRegistry.PLAYER(), data, i, SharedConstants.getCurrentVersion().getWorldVersion()); + data = MCDataConverter.convertTag(MCTypeRegistry.PLAYER(), data, i, SharedConstants.getCurrentVersion().getDataVersion().getVersion()); } return data; }