9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-20 15:29:19 +00:00

Fix experience progress not synchronising from database correctly

This commit is contained in:
William
2021-10-26 17:09:26 +01:00
parent 62c7e2508a
commit f2b5df83c8
2 changed files with 3 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ public class PlayerSetter {
/** /**
* Update a {@link Player}'s data, sending it to the proxy * Update a {@link Player}'s data, sending it to the proxy
*
* @param player {@link Player} to send data to proxy * @param player {@link Player} to send data to proxy
*/ */
public static void updatePlayerData(Player player) { public static void updatePlayerData(Player player) {
@@ -79,6 +80,7 @@ public class PlayerSetter {
/** /**
* Request a {@link Player}'s data from the proxy * Request a {@link Player}'s data from the proxy
*
* @param playerUUID The {@link UUID} of the {@link Player} to fetch PlayerData from * @param playerUUID The {@link UUID} of the {@link Player} to fetch PlayerData from
* @throws IOException If the request Redis message data fails to serialize * @throws IOException If the request Redis message data fails to serialize
*/ */

View File

@@ -125,7 +125,7 @@ public class DataManager {
final String serializedStatusEffects = resultSet.getString("status_effects"); final String serializedStatusEffects = resultSet.getString("status_effects");
final int totalExperience = resultSet.getInt("total_experience"); final int totalExperience = resultSet.getInt("total_experience");
final int expLevel = resultSet.getInt("exp_level"); final int expLevel = resultSet.getInt("exp_level");
final float expProgress = resultSet.getInt("exp_progress"); final float expProgress = resultSet.getFloat("exp_progress");
final String gameMode = resultSet.getString("game_mode"); final String gameMode = resultSet.getString("game_mode");
final boolean isFlying = resultSet.getBoolean("is_flying"); final boolean isFlying = resultSet.getBoolean("is_flying");
final String serializedAdvancementData = resultSet.getString("advancements"); final String serializedAdvancementData = resultSet.getString("advancements");