Fixed infinite loop at clanhall siege.
Contributed by Sahar.
This commit is contained in:
@@ -146,8 +146,10 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
|
|||||||
{
|
{
|
||||||
if (_guards != null)
|
if (_guards != null)
|
||||||
{
|
{
|
||||||
|
_guards.forEach(guard -> guard.startRespawn());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_guards = new ArrayList<>();
|
_guards = new ArrayList<>();
|
||||||
try (Connection con = DatabaseFactory.getConnection();
|
try (Connection con = DatabaseFactory.getConnection();
|
||||||
PreparedStatement ps = con.prepareStatement(SQL_LOAD_GUARDS))
|
PreparedStatement ps = con.prepareStatement(SQL_LOAD_GUARDS))
|
||||||
|
@@ -146,8 +146,10 @@ public abstract class ClanHallSiegeEngine extends Quest implements Siegable
|
|||||||
{
|
{
|
||||||
if (_guards != null)
|
if (_guards != null)
|
||||||
{
|
{
|
||||||
|
_guards.forEach(guard -> guard.startRespawn());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_guards = new ArrayList<>();
|
_guards = new ArrayList<>();
|
||||||
try (Connection con = DatabaseFactory.getConnection();
|
try (Connection con = DatabaseFactory.getConnection();
|
||||||
PreparedStatement ps = con.prepareStatement(SQL_LOAD_GUARDS))
|
PreparedStatement ps = con.prepareStatement(SQL_LOAD_GUARDS))
|
||||||
|
Reference in New Issue
Block a user