mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 19:34:09 +00:00
Update ProfileController.java
This commit is contained in:
1 parent
2ae3a32ad1
commit
88b5be2f25
1 file changed
+1
-4
@@ -122,7 +122,6 @@ public class ProfileController implements IProfileHandler {
|
||||
if (player == null)
|
||||
return;
|
||||
Profile profile;
|
||||
boolean profileModified = false;
|
||||
if (activeProfiles.containsKey(player.getUniqueID())) {
|
||||
profile = activeProfiles.get(player.getUniqueID());
|
||||
profile.player = player;
|
||||
@@ -135,16 +134,14 @@ public class ProfileController implements IProfileHandler {
|
||||
profile.getSlots().put(0, defaultSlot);
|
||||
profile.currentSlotId = 0;
|
||||
saveSlotData(player);
|
||||
profileModified = true;
|
||||
}
|
||||
if (!profile.getSlots().containsKey(profile.currentSlotId)) {
|
||||
profile.currentSlotId = 0;
|
||||
}
|
||||
profile.player = player;
|
||||
activeProfiles.put(player.getUniqueID(), profile);
|
||||
loadSlotData(player);
|
||||
verifySlotQuests(profile.player);
|
||||
if (profileModified)
|
||||
save(player, profile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user