Fixed log errors when accrued per hour = 0.

This commit is contained in:
ryanhamshire 2015-07-08 13:33:47 -07:00
parent a45858c7de
commit b1b8d537c3

View File

@ -38,8 +38,10 @@ class DeliverClaimBlocksTask implements Runnable
@Override
public void run()
{
if(GriefPrevention.instance.config_claims_blocksAccruedPerHour <= 0) return;
//if no player specified, this task will create a player-specific task for each online player, scheduled one tick apart
if(this.player == null && GriefPrevention.instance.config_claims_blocksAccruedPerHour > 0)
if(this.player == null)
{
Collection<Player> players = (Collection<Player>)GriefPrevention.instance.getServer().getOnlinePlayers();