mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 18:05:10 +00:00
Experimental SyncController with UpdateClient
This commit is contained in:
1 parent
92cf6bcad6
commit
3e67bf0336
31 files changed
+348
-74
No files matched your search
@@ -276,7 +276,7 @@ public class ServerEventsHandler {
|
||||
}
|
||||
if(event.entityLiving instanceof EntityPlayer){
|
||||
PlayerData data = PlayerDataController.instance.getPlayerData((EntityPlayer)event.entityLiving);
|
||||
data.save();
|
||||
data.save(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -341,6 +341,7 @@ public class ServerEventsHandler {
|
||||
killed.put(name, amount + 1);
|
||||
}
|
||||
quest.setKilled(data, killed);
|
||||
playerData.updateClient = true;
|
||||
}
|
||||
if(!checkCompletion)
|
||||
return;
|
||||
@@ -369,7 +370,7 @@ public class ServerEventsHandler {
|
||||
@SubscribeEvent
|
||||
public void world(PlayerEvent.SaveToFile event){
|
||||
PlayerData data = PlayerDataController.instance.getPlayerData((EntityPlayer) event.entity);
|
||||
data.save();
|
||||
data.save(false);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
|
||||
Reference in new issue
Block a user