mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Ensure NPC userdata creation for Citizen NPCs (#4149)
0ddfcbd0fa/v1_16_R3/src/main/java/net/citizensnpcs/nms/v1_16_R3/entity/HumanController.java (L36-L40)
why????????????????????????????????????????????????????????????
This commit is contained in:
parent
8a8d45c91e
commit
c76e4239bb
1 changed files with 3 additions and 2 deletions
|
@ -283,8 +283,9 @@ public class VaultEconomyProvider implements Economy {
|
|||
return false;
|
||||
}
|
||||
|
||||
// This is a UUID generated from a seed that is 100% an NPC or offline mode user.
|
||||
if (player.getUniqueId().version() == 3) {
|
||||
// String based UUIDs are version 3 and are used for NPC and OfflinePlayers
|
||||
// Citizens uses v2 UUIDs, yeah I don't know either!
|
||||
if (player.getUniqueId().version() == 3 || player.getUniqueId().version() == 2) {
|
||||
final File folder = new File(ess.getDataFolder(), "userdata");
|
||||
if (!folder.exists()) {
|
||||
if (!folder.mkdirs()) {
|
||||
|
|
Loading…
Reference in a new issue