Changed addExpAndSp methods to synchronized.
This commit is contained in:
@@ -3772,7 +3772,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)
|
||||
}
|
||||
|
@@ -10443,12 +10443,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);
|
||||
}
|
||||
|
@@ -1175,7 +1175,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