Fix MCDataConverter with new reflect wrapper stuff

This commit is contained in:
Marc Baloup 2023-05-09 14:12:04 +02:00
parent edd4e89a6e
commit e640cbb1a3

View File

@ -167,7 +167,7 @@ public interface PaperOffPlayer extends AbstractOffPlayer {
.getPlayerData(getUniqueId().toString()); .getPlayerData(getUniqueId().toString());
if (convertTag) { if (convertTag) {
int i = data.contains("DataVersion", 3) ? data.getInt("DataVersion") : -1; 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; return data;
} }