Changed addExpAndSp methods to synchronized.
This commit is contained in:
@@ -4547,7 +4547,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)
|
||||
}
|
||||
|
||||
@@ -10400,12 +10400,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);
|
||||
}
|
||||
|
||||
@@ -1135,7 +1135,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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user