Move WorldSaveEvent to proper location
calling CraftWorld.save() currently does not call WorldSaveEvent, and WorldSaveEvent could fire on worlds that have saving disabled. New location will always fire during a world save and only during an actual save. By: Aikar <aikar@aikar.co>
This commit is contained in:
1 parent
f03d75f288
commit
41eaea21ca
3 files changed
+42
-46
No files matched your search
@@ -935,8 +935,6 @@ public final class CraftServer implements Server {
|
||||
try {
|
||||
handle.save(true, null);
|
||||
handle.saveLevel();
|
||||
WorldSaveEvent event = new WorldSaveEvent(handle.getWorld());
|
||||
getPluginManager().callEvent(event);
|
||||
} catch (ExceptionWorldConflict ex) {
|
||||
getLogger().log(Level.SEVERE, null, ex);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user