Increase supply drop timer and fix the "wood" block bug
This commit is contained in:
parent
2f08c031a4
commit
3a1fef6557
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user