double randomChance = random.nextDouble() * (totalChance != -1 ? totalChance : 100);
TerrainControl.log(LogMarker.TRACE, " Needed: {} Obtained: {}", branch.getChance(), randomChance);
if (randomChance < branch.getChance())
{
TerrainControl.log(LogMarker.TRACE, " Successful Spawn");
return new CustomObjectCoordinate(branch.getCustomObject(), branch.getRotation(), x + this.x, y + this.y, z + this.z);
}
}
TerrainControl.log(LogMarker.TRACE, " No Spawn");
return null;
}