mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
fix WorldSaveEvent not firing with /save-all (#5650)
This commit is contained in:
parent
8a288222ce
commit
58831efcc7
1 changed files with 0 additions and 6 deletions
|
@ -294,12 +294,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
public void save(@Nullable IProgressUpdate iprogressupdate, boolean flag, boolean flag1) {
|
public void save(@Nullable IProgressUpdate iprogressupdate, boolean flag, boolean flag1) {
|
||||||
ChunkProviderServer chunkproviderserver = this.getChunkProvider();
|
ChunkProviderServer chunkproviderserver = this.getChunkProvider();
|
||||||
|
|
||||||
if (!flag1) {
|
|
||||||
- org.bukkit.Bukkit.getPluginManager().callEvent(new org.bukkit.event.world.WorldSaveEvent(getWorld())); // CraftBukkit
|
|
||||||
+ if (flag) org.bukkit.Bukkit.getPluginManager().callEvent(new org.bukkit.event.world.WorldSaveEvent(getWorld())); // CraftBukkit // Paper
|
|
||||||
try (co.aikar.timings.Timing ignored = timings.worldSave.startTiming()) { // Paper
|
|
||||||
if (iprogressupdate != null) {
|
|
||||||
iprogressupdate.a(new ChatMessage("menu.savingLevel"));
|
|
||||||
@@ -0,0 +0,0 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
@@ -0,0 +0,0 @@ public class WorldServer extends World implements GeneratorAccessSeed {
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue