mirror of
https://github.com/songoda/UltimateTimber.git
synced 2025-01-09 17:27:58 +01:00
Minor clean up
This commit is contained in:
parent
2b27db5805
commit
5cad56e436
@ -35,7 +35,7 @@ public class CustomLoot {
|
||||
|
||||
FileConfiguration fileConfiguration = UltimateTimber.getInstance().getConfig();
|
||||
|
||||
List<String> arrayList = (List<String>) fileConfiguration.getList(DefaultConfig.CUSTOM_LOOT_LIST);
|
||||
List<String> arrayList = fileConfiguration.getStringList(DefaultConfig.CUSTOM_LOOT_LIST);
|
||||
|
||||
for (String string : arrayList) {
|
||||
|
||||
|
@ -28,8 +28,8 @@ class TreeReplant {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!block.getLocation().clone().subtract(new Vector(0, 1, 0)).getBlock().getType().equals(Material.DIRT) &&
|
||||
!block.getLocation().clone().subtract(new Vector(0, 1, 0)).getBlock().getType().equals(Material.COARSE_DIRT) && !block.getLocation().clone().subtract(new Vector(0, 1, 0)).getBlock().getType().equals(Material.PODZOL)) {
|
||||
Material belowBlockType = block.getLocation().clone().subtract(new Vector(0, 1, 0)).getBlock().getType();
|
||||
if (!belowBlockType.equals(Material.DIRT) && !belowBlockType.equals(Material.COARSE_DIRT) && !belowBlockType.equals(Material.PODZOL)) {
|
||||
block.setType(Material.AIR);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user