mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-08-30 13:50:46 +00:00
custom trees
This commit is contained in:
@@ -28,7 +28,6 @@ public class TerraTree implements Tree {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean plant(Location location, Random random, JavaPlugin javaPlugin) {
|
public boolean plant(Location location, Random random, JavaPlugin javaPlugin) {
|
||||||
location.subtract(0, 1, 0);
|
|
||||||
Location mut = location.clone().subtract(0, yOffset, 0);
|
Location mut = location.clone().subtract(0, yOffset, 0);
|
||||||
if(!spawnable.contains(location.getBlock().getType())) return false;
|
if(!spawnable.contains(location.getBlock().getType())) return false;
|
||||||
Structure struc = structure.get(random);
|
Structure struc = structure.get(random);
|
||||||
@@ -44,7 +43,6 @@ public class TerraTree implements Tree {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean plantBlockCheck(Location location, Random random) {
|
public boolean plantBlockCheck(Location location, Random random) {
|
||||||
location.subtract(0, 1, 0);
|
|
||||||
Location mut = location.clone().subtract(0, yOffset, 0);
|
Location mut = location.clone().subtract(0, yOffset, 0);
|
||||||
if(!spawnable.contains(location.getBlock().getType())) return false;
|
if(!spawnable.contains(location.getBlock().getType())) return false;
|
||||||
Structure struc = structure.get(random);
|
Structure struc = structure.get(random);
|
||||||
|
|||||||
Reference in New Issue
Block a user