mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 19:15:11 +00:00
Fixed server-side lag caused by player events. THIS IS BIG.
This commit is contained in:
1 parent
1a78b2dad7
commit
953f6e0459
4 files changed
+166
-158
No files matched your search
@@ -28,7 +28,6 @@ public class PlayerData implements IExtendedEntityProperties{
|
||||
public PlayerFactionData factionData = new PlayerFactionData();
|
||||
public PlayerItemGiverData itemgiverData = new PlayerItemGiverData();
|
||||
public PlayerMailData mailData = new PlayerMailData();
|
||||
public PlayerDataScript scriptData;
|
||||
public DataTimers timers = new DataTimers(this);
|
||||
|
||||
public EntityNPCInterface editingNpc;
|
||||
@@ -232,7 +231,6 @@ public class PlayerData implements IExtendedEntityProperties{
|
||||
PlayerData data = new PlayerData();
|
||||
if (data.player == null) {
|
||||
data.player = player;
|
||||
data.scriptData = new PlayerDataScript(player);
|
||||
NBTTagCompound compound = loadPlayerData(player.getPersistentID().toString());
|
||||
if (compound.hasNoTags()) {
|
||||
compound = loadPlayerDataOld(player.getCommandSenderName());
|
||||
|
||||
Reference in new issue
Block a user