Use try for CreatureFollowTaskManager as original method did.

This commit is contained in:
MobiusDevelopment
2020-04-09 10:16:43 +00:00
parent e04b0efc83
commit 1b0e1d7214
18 changed files with 504 additions and 378 deletions

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {

View File

@@ -75,6 +75,8 @@ public class CreatureFollowTaskManager
} }
private void follow(Creature creature, int range) private void follow(Creature creature, int range)
{
try
{ {
if (creature.hasAI()) if (creature.hasAI())
{ {
@@ -118,6 +120,11 @@ public class CreatureFollowTaskManager
remove(creature); remove(creature);
} }
} }
catch (Exception e)
{
// Ignore.
}
}
public void addNormalFollow(Creature creature, int range) public void addNormalFollow(Creature creature, int range)
{ {