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

View File

@ -36,7 +36,7 @@ import mineplex.gemhunters.world.WorldDataModule;
public class SupplyDropModule extends MiniPlugin 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 CHEST_COLOUR = "RED";
private static final String LOCATION_DATA = "SUPPLY_DROP"; private static final String LOCATION_DATA = "SUPPLY_DROP";
@ -106,7 +106,7 @@ public class SupplyDropModule extends MiniPlugin
@EventHandler @EventHandler
public void fallingBlockChange(EntityChangeBlockEvent event) 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(); Block block = event.getBlock();