diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 39648e5..2380b5f 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -592,12 +592,19 @@ // if (this.tickCounter % 900 == 0) // { this.theProfiler.startSection("save"); + this.theProfiler.startSection("players"); this.serverConfigManager.saveOnePlayerData(tickCounter); + this.theProfiler.endStartSection("chunks"); for(WorldServer world : worldServers) world.theChunkProviderServer.saveOneChunk(tickCounter); + this.theProfiler.endSection(); if(tickCounter % 2401 == 0) + { + this.theProfiler.startSection("other"); for(WorldServer world : worldServers) world.saveOtherData(); + this.theProfiler.endSection(); + } this.theProfiler.endSection(); // } diff --git a/src/main/java/net/minecraftforge/event/ForgeEventFactory.java b/src/main/java/net/minecraftforge/event/ForgeEventFactory.java index 8f5d4e3..d3342d6 100644 --- a/src/main/java/net/minecraftforge/event/ForgeEventFactory.java +++ b/src/main/java/net/minecraftforge/event/ForgeEventFactory.java @@ -207,7 +207,7 @@ public static void firePlayerSavingEvent(EntityPlayer player, File playerDirectory, String uuidString) { - MinecraftForge.EVENT_BUS.post(new PlayerEvent.SaveToFile(player, playerDirectory, uuidString)); + MinecraftForge.EVENT_BUS.postWithProfile(player.worldObj.theProfiler, new PlayerEvent.SaveToFile(player, playerDirectory, uuidString)); } public static void firePlayerLoadingEvent(EntityPlayer player, IPlayerFileData playerFileData, String uuidString)