Made spawn to XML methods synchronized.

This commit is contained in:
MobiusDev
2018-07-23 23:22:04 +00:00
parent c06cccd4ee
commit 8055c7fc5f
8 changed files with 16 additions and 16 deletions

View File

@ -376,7 +376,7 @@ public final class SpawnTable implements IGameXmlReader
* @param spawn the spawn to add
* @param store if {@code true} it'll be saved in the spawn XML files
*/
public void addNewSpawn(L2Spawn spawn, boolean store)
public synchronized void addNewSpawn(L2Spawn spawn, boolean store)
{
addSpawn(spawn);
@ -470,7 +470,7 @@ public final class SpawnTable implements IGameXmlReader
* @param spawn the spawn to delete
* @param update if {@code true} the spawn XML files will be updated
*/
public void deleteSpawn(L2Spawn spawn, boolean update)
public synchronized void deleteSpawn(L2Spawn spawn, boolean update)
{
if (!removeSpawn(spawn))
{