Przeglądaj źródła

Not allow multiple instances of the cubic action start in the same time.

_DS_ 15 lat temu
rodzic
commit
b760b0d100

+ 2 - 2
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2CubicInstance.java

@@ -214,7 +214,7 @@ public class L2CubicInstance
 		_disappearTask = ThreadPoolManager.getInstance().scheduleGeneral(new Disappear(), totallifetime); // disappear
 	}
 	
-	public void doAction()
+	public synchronized void doAction()
 	{
 		if (_active)
 			return;
@@ -267,12 +267,12 @@ public class L2CubicInstance
 	public void stopAction()
 	{
 		_target = null;
-		_active = false;
 		if (_actionTask != null)
 		{
 			_actionTask.cancel(true);
 			_actionTask = null;
 		}
+		_active = false;
 	}
 	
 	public void cancelDisappear()