JarHax / Prestige

A mod that allows progress to transfer between worlds.
GNU Lesser General Public License v2.1
1 stars 6 forks source link

Reward uses "getDisplayNameString" which may not get actual player ID #30

Open Water-Moon opened 3 years ago

Water-Moon commented 3 years ago

In the code of this mod (e.g. here), the method player.getDisplayNameString() is used instead of getting player's actual ID.

In certain cases, e.g. when FTBUtilities is installed and people changed their display name using /nick command, the return value of getDisplayNameStringmay be incorrect (be their nick instead of actual ID), resulting in the player not being able to get their reward.