Changed addExpAndSp methods to synchronized.
This commit is contained in:
@ -5755,7 +5755,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder
|
||||
* @param addToExp the add to exp
|
||||
* @param addToSp the add to sp
|
||||
*/
|
||||
public void addExpAndSp(long addToExp, int addToSp)
|
||||
public synchronized void addExpAndSp(long addToExp, int addToSp)
|
||||
{
|
||||
// Dummy method (overridden by players and pets)
|
||||
}
|
||||
|
@ -12680,7 +12680,7 @@ public class Player extends Playable
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addExpAndSp(long addToExp, int addToSp)
|
||||
public synchronized void addExpAndSp(long addToExp, int addToSp)
|
||||
{
|
||||
getStat().addExpAndSp(addToExp, addToSp);
|
||||
}
|
||||
|
@ -1012,7 +1012,7 @@ public class Pet extends Summon
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addExpAndSp(long addToExp, int addToSp)
|
||||
public synchronized void addExpAndSp(long addToExp, int addToSp)
|
||||
{
|
||||
if (getNpcId() == 12564)
|
||||
{
|
||||
|
@ -170,7 +170,7 @@ public class Servitor extends Summon
|
||||
_timeRemaining -= value;
|
||||
}
|
||||
|
||||
public void addExpAndSp(int addToExp, int addToSp)
|
||||
public synchronized void addExpAndSp(int addToExp, int addToSp)
|
||||
{
|
||||
getOwner().addExpAndSp(addToExp, addToSp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user