custom trees

This commit is contained in:
dfsek
2020-11-30 12:29:15 -07:00
parent 3eaab219f1
commit 1357e7f84e

View File

@@ -28,7 +28,6 @@ public class TerraTree implements Tree {
@Override
public boolean plant(Location location, Random random, JavaPlugin javaPlugin) {
location.subtract(0, 1, 0);
Location mut = location.clone().subtract(0, yOffset, 0);
if(!spawnable.contains(location.getBlock().getType())) return false;
Structure struc = structure.get(random);
@@ -44,7 +43,6 @@ public class TerraTree implements Tree {
}
public boolean plantBlockCheck(Location location, Random random) {
location.subtract(0, 1, 0);
Location mut = location.clone().subtract(0, yOffset, 0);
if(!spawnable.contains(location.getBlock().getType())) return false;
Structure struc = structure.get(random);