Increase supply drop timer and fix the "wood" block bug

This commit is contained in:
Sam 2017-02-26 17:14:41 +00:00
parent 2f08c031a4
commit 3a1fef6557
1 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ import mineplex.gemhunters.world.WorldDataModule;
public class SupplyDropModule extends MiniPlugin
{
private static final long SEQUENCE_TIMER = TimeUnit.MINUTES.toMillis(15);
private static final long SEQUENCE_TIMER = TimeUnit.MINUTES.toMillis(20);
private static final String CHEST_COLOUR = "RED";
private static final String LOCATION_DATA = "SUPPLY_DROP";
@ -106,7 +106,7 @@ public class SupplyDropModule extends MiniPlugin
@EventHandler
public void fallingBlockChange(EntityChangeBlockEvent event)
{
if (event.getEntity() instanceof FallingBlock && event.getTo() == Material.WOOD && isActive() && UtilMath.offsetSquared(_current.getChestLocation(), event.getBlock().getLocation()) < 4)
if (event.getEntity() instanceof FallingBlock && event.getTo() == Material.WOOD && isActive() && UtilMath.offsetSquared(_current.getChestLocation(), event.getBlock().getLocation()) < 16)
{
Block block = event.getBlock();