Changed addExpAndSp methods to synchronized.
This commit is contained in:
@@ -5709,7 +5709,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)
|
||||
}
|
||||
|
@@ -12368,7 +12368,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);
|
||||
}
|
||||
|
@@ -1003,7 +1003,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