Worldborder color

This commit is contained in:
Brianna O'Keefe 2019-02-10 00:12:54 -05:00
parent b9abac5b6a
commit 441073b4ff
3 changed files with 4 additions and 8 deletions

View File

@ -219,6 +219,8 @@ public class Block implements Listener {
Config config = skyblock.getFileManager().getConfig(new File(skyblock.getDataFolder(), "config.yml"));
FileConfiguration configLoad = config.getFileConfiguration();
if (island == null) return;
org.bukkit.block.Block block = event.getToBlock();
if (!LocationUtil.isLocationAtLocationRadius(block.getLocation(),
island.getLocation(world, IslandEnvironment.Island), island.getRadius() - 1.0D)) {

View File

@ -30,8 +30,6 @@ public class Stackable {
private Material material;
private Integer size = 2;
private UUID dropEntity;
public Stackable(Location location, Material material) {
this.island = SkyBlock.getInstance().getIslandManager().getIslandAtLocation(location);
@ -75,10 +73,6 @@ public class Stackable {
this.material = material;
}
public UUID getDropEntity() {
return dropEntity;
}
public Integer getSize() {
return size;
}

View File

@ -66,9 +66,9 @@ public final class WorldBorder {
double.class, long.class);
if (color == Color.Green) {
transitionSizeBetween.invoke(worldBorder, size, size, 20000000L);
transitionSizeBetween.invoke(worldBorder, size - 0.1D, size, 20000000L);
} else if (color == Color.Red) {
transitionSizeBetween.invoke(worldBorder, size, size, 20000000L);
transitionSizeBetween.invoke(worldBorder, size, size - 1.0D, 20000000L);
}
@SuppressWarnings({ "unchecked", "rawtypes" })