mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-27 08:59:45 +00:00
parent
5d8f5cecee
commit
cdea68443a
1 changed files with 1 additions and 2 deletions
|
@ -272,8 +272,7 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
|
|||
conn = cpds.getConnection();
|
||||
ps = getStatementPlayerCountByLocation(conn, block.getWorld().getName(), block.getX(), block.getY(), block.getZ(), playerName);
|
||||
rs = ps.executeQuery();
|
||||
rs.next();
|
||||
return rs.getInt(1) > 0 && rs.getInt(2) == 0;
|
||||
return rs.next() && rs.getInt(1) > 0 && rs.getInt(2) == 0;
|
||||
}
|
||||
catch (SQLException ex)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue