Changed addExpAndSp methods to synchronized.
This commit is contained in:
		@@ -3794,7 +3794,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
 | 
			
		||||
	 * @param addToExp
 | 
			
		||||
	 * @param addToSp
 | 
			
		||||
	 */
 | 
			
		||||
	public void addExpAndSp(double addToExp, double addToSp)
 | 
			
		||||
	public synchronized void addExpAndSp(double addToExp, double addToSp)
 | 
			
		||||
	{
 | 
			
		||||
		// Dummy method (overridden by players and pets)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -10833,12 +10833,12 @@ public class Player extends Playable
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	@Override
 | 
			
		||||
	public void addExpAndSp(double addToExp, double addToSp)
 | 
			
		||||
	public synchronized void addExpAndSp(double addToExp, double addToSp)
 | 
			
		||||
	{
 | 
			
		||||
		getStat().addExpAndSp(addToExp, addToSp, false);
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	public void addExpAndSp(double addToExp, double addToSp, boolean useVitality)
 | 
			
		||||
	public synchronized void addExpAndSp(double addToExp, double addToSp, boolean useVitality)
 | 
			
		||||
	{
 | 
			
		||||
		getStat().addExpAndSp(addToExp, addToSp, useVitality);
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -1320,7 +1320,7 @@ public class Pet extends Summon
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	@Override
 | 
			
		||||
	public void addExpAndSp(double addToExp, double addToSp)
 | 
			
		||||
	public synchronized void addExpAndSp(double addToExp, double addToSp)
 | 
			
		||||
	{
 | 
			
		||||
		if (getId() == 12564) // TODO: Remove this stupid hardcode.
 | 
			
		||||
		{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user