From e52499e41d3a035d852e566288c31c7113160bb9 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Wed, 22 Jun 2022 20:46:13 -0700 Subject: [PATCH] Fix Player#loadData and Player#saveData javadocs (#8039) --- patches/api/0054-Fix-upstream-javadocs.patch | 22 +++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/patches/api/0054-Fix-upstream-javadocs.patch b/patches/api/0054-Fix-upstream-javadocs.patch index 5533e099e..ff1980a24 100644 --- a/patches/api/0054-Fix-upstream-javadocs.patch +++ b/patches/api/0054-Fix-upstream-javadocs.patch @@ -91,9 +91,29 @@ index be9334a8b5fba9181ad63c211697e798be63da25..0514a141cb93a650be38c63d4336d46e * Instructs this Mob to set the specified LivingEntity as its target. *

diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java -index fb3bea65817564e2e78a0db03cc290a912ae21bc..9d23a4019814f4662f4ab9a47b3fceff656c5245 100644 +index fb3bea65817564e2e78a0db03cc290a912ae21bc..575db13060693b5e1ecc12911140f3b37e2fe773 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java +@@ -303,15 +303,15 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM + + /** + * Saves the players current location, health, inventory, motion, and +- * other information into the username.dat file, in the world/player +- * folder ++ * other information into the <uuid>.dat file, in the ++ * <level-name>/playerdata/ folder. + */ + public void saveData(); + + /** + * Loads the players current location, health, inventory, motion, and +- * other information from the username.dat file, in the world/player +- * folder. ++ * other information from the <uuid>.dat file, in the ++ * <level-name>/playerdata/ folder. + *

+ * Note: This will overwrite the players current inventory, health, + * motion, etc, with the state from the saved dat file. @@ -760,7 +760,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM * * Use supplied alternative character to the section symbol to represent legacy color codes.